/*--------------------
Theme Name: Promos-Child
Description: Promos Child Theme
Template: promos
--------------------*/

/* --- Global Link Color Fix --- */
body a,
body a:link,
body a:visited {
    color: #15800b !important;
    text-decoration: none;
}

body a:hover,
body a:active,
body a:focus {
    color: #116609 !important;
    /* Slightly darker on hover */
    text-decoration: underline;
}

/* Ensure links in tooltips are white regardless of global styles */
.app-tooltip-container .app-tooltip-text a,
.app-tooltip-container .app-tooltip-text a:link,
.app-tooltip-container .app-tooltip-text a:visited {
    color: #fff !important;
    text-decoration: underline;
}

/* --- Specific Link Styles (Higher Specificity) --- */
.comment-form .logged-in-as a:last-child:hover,
.comment-form .logged-in-as a:last-child:focus,
.post-cats>span a:hover,
.post-cats>span a:focus,
.main-header a:hover,
.main-header a:focus,
.main-header a:active,
.top-menu>ul>li>a:hover,
.main-menu ul ul li:hover>a,
.main-menu ul li.current-menu-item>a,
.header-2 .main-menu>ul>li.current-menu-item>a,
.main-menu ul li:hover>a,
.post-navigation .nav-links a:hover,
.post-navigation .nav-links a:focus,
.tabs-nav li.tab-active a,
.tabs-nav li.tab-active,
ul.trail-items li a:hover span,
.author-socials a:hover,
.post-date a:focus,
.post-date a:hover,
.post-excerpt a:hover,
.post-excerpt a:focus,
.content a:hover,
.content a:focus,
.post-footer>span a:hover,
.post-footer>span a:focus,
.widget a:hover,
.widget a:focus,
.footer-menu li a:hover,
.footer-menu li a:focus,
.footer-social-links a:hover,
.footer-social-links a:focus,
.site-footer a:hover,
.tags-links a,
.tags-links i,
.post-cats>span i,
.promo-three .post-category a,
.site-footer a:focus,
.content-area p a {
    color: #15800b !important;
    font-weight: 600;
}

body {
    background: white;
}

h1.site-title,
h1.site-title a {
    color: darkgray !important;
}

.header-1 .head_one {
    background: none;
    height: 130px;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.header-1 .head_one .logo {
    padding-top: 15px;
    padding-bottom: 150px;
}

.header-1 #site-navigation {
    border-top: none;
}

.bhpslogo {
    width: 75%;
    height: 75%;
    margin-left: auto;
    margin-right: auto;
}

.post-title {
    border-bottom-style: solid;
    border-bottom-width: thin;
    border-bottom-color: lightgray;
}

/* prominent block to link to the search tool */
.searchnowcta {
    display: block;
    position: relative;
    background-color: lightgray;
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 30px 0px 30px 170px;
    border: buttonshadow;
    border-style: solid;
    border-color: white;
    border-radius: 10px;
    border-width: 0px;
    text-align: left;
    font-size: 2em;
    font-weight: bold;
}

.searchnowcta:before {
    content: "";
    position: absolute;
    width: 157px;
    height: 160px;
    background-image: url("/wp-content/uploads/2023/10/APP4-logo-with-white-graduated-circular-background-to-go-on-any-colour-CROPPED-500px.png");
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 100;
    top: -30px;
    left: -20px;
}

p.searchnowcta a {
    color: #15800b !important;
    text-decoration: none !important;
}

p.searchnowcta a:hover {
    color: gray !important;
    text-decoration: none !important;
}

#map {
    height: 300px;
    width: 630px;
    margin-bottom: 2em;
}

p.latlon {
    display: none;
}

div.leftcolumnUL,
div.centrecolumnUL,
div.rightcolumnUL {
    width: 33%;
    clear: none;
    float: left;
}

#submitlocscen,
.save-results-btn {
    background-color: #e6e6e6;
    color: #15800b;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 12px;
}

article.app_species div.post-wrap {
    padding-top: 0;
}

article.app_species div.post-wrap div.post-content {
    padding-top: 0;
    overflow: visible;
}

article.app_species div.post-wrap div.post-excerpt,
article.app_species div.post-wrap div.content {
    margin-bottom: 1px;
}

article.app_species div.post-wrap div.post-content h2.post-title {
    margin-top: 0;
    margin-bottom: 5px;
}

article.app_species div.post-wrap div.post-content div.post-date {
    display: none;
}

h2.post-title.entry-title,
h1.post-title.entry-title,
p.commonnameintitle {
    display: inline-block;
}

p.commonnameintitle {
    font-size: 1.1em;
    margin-left: 20px;
    margin-bottom: 5px;
}

div.optimumConditions {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #e6e6e6;
    border-radius: 5px;
}

div.optimumConditions p {
    margin-bottom: 0;
}

div.speciesDataBlock {
    width: 49%;
    float: left;
    background-color: #e6e6e6;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 5px;
}

div.speciesDataBlock.oddNumbered {
    clear: both;
    margin-right: 10px;
}

body.post-type-archive-app_species div.speciesDataBlock {
    display: none;
}

p.showhidespeciesdata {
    padding: 5px;
    margin-bottom: 0;
    background-color: #e6e6e6;
    border-radius: 5px;
}

span.apphidespeciesdata a,
span.appshowspeciesdata a {
    font-weight: bold;
}

.single .post-excerpt div.speciesDataBlock h4,
.post-excerpt div.speciesDataBlock h4 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 13px;
}

.single .post-excerpt div.speciesDataBlock h4:first-of-type,
.post-excerpt div.speciesDataBlock h4:first-of-type {
    margin-top: 0;
}

.content div.speciesimgholder p.speciesficaption {
    margin-bottom: 0;
    font-size: 0.8em;
    color: #303030;
}

.single .post-excerpt div.speciesDataBlock ul {
    margin: 0;
    padding: 0;
}

.single.single-right-sidebar.no-sidebar #sidebar {
    display: none;
}

.single.single-right-sidebar.no-sidebar #primary {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

main.single-species div.post-thumbnail {
    display: none;
}

.post-excerpt div.speciesDataBlock ul {
    padding: 0 0 0 15px;
}

body.post-type-archive-app_species div.post-media {
    display: none;
}

.single .post-excerpt div.speciesDataBlock ul li,
.post-excerpt div.speciesDataBlock ul li {
    margin: 0;
    padding: 0 0 0 1em;
    text-indent: -1em;
    color: black;
}

.single .post-excerpt div.speciesDataBlock p {
    margin-bottom: 0.5em;
}

.single .post-excerpt div.speciesDataBlock p strong {
    font-weight: bold;
}

.speciesimgholder {
    text-align: center;
}

.speciesDataBlock img.wp-post-image {
    max-height: 400px;
    width: auto;
    height: auto;
}

div.suitTrafficLights {
    padding: 3px;
    height: 2.7em;
    margin-bottom: 5px;
    background-color: #e6e6e6;
    overflow: visible;
    border-radius: 5px;
}

div.suitTrafficLights div {
    float: left;
    width: 3.0em;
    margin-right: 0.5em;
    padding-top: 0.7em;
    padding-bottom: 0.7em;
    text-align: center;
    font-size: 0.8em;
    font-family: "Pragati Narrow", Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-radius: 40px;
}

div.suitA {
    background-color: limegreen;
}

div.suitB {
    background-color: yellow;
}

div.suitC {
    background-color: orange;
}

div.suitD {
    background-color: red;
}

div.suitI {
    background-color: white;
}

div.suitL {
    background-color: lightcyan;
}

div.suitTrafficLights span.keytext {
    font-size: 0.9em;
    font-weight: bold;
}

div.suitTrafficLights.key {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tltooltip {
    position: relative;
    display: inline-block;
}

.tltooltip .tooltiptext {
    visibility: hidden;
    width: 260px;
    background-color: black;
    color: #fff;
    text-align: center;
    font-weight: Normal;
    font-size: 1.2em;
    padding: 5px 0;
    border-radius: 5px;
    position: absolute;
    top: 2em;
    left: -1em;
    z-index: 100;
}

.tltooltip:hover .tooltiptext {
    visibility: visible;
}

.autooltip {
    position: relative;
    display: inline;
    font-size: 1.2em;
}

.autooltip .autooltiptext {
    visibility: hidden;
    width: 260px;
    background-color: black;
    color: #fff;
    text-align: center;
    font-weight: Normal;
    font-size: 0.8em;
    padding: 5px 0;
    border-radius: 5px;
    position: absolute;
    bottom: 1.5em;
    left: -1em;
    z-index: 100;
}

.autooltip:hover .autooltiptext {
    visibility: visible;
}

p.locationerrormessage {
    font-weight: bold;
    color: red;
}

div#primary .single-species {
    width: 100%;
    flex-basis: 100%;
}

/* Tooltip Styles */
.app-tooltip-container {
    position: relative;
    display: inline !important;
    cursor: help !important;
}



.app-tooltip-container .app-tooltip-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-indent: 0 !important;
    font-size: 0.9em !important;
    font-size: 0.9em !important;
    cursor: help !important;
    font-style: italic !important;
    font-weight: bold !important;
    background: #000 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    text-align: center !important;
    margin-left: 4px !important;
    margin-right: 2px !important;
    vertical-align: middle !important;
    position: relative !important;
    top: -4px !important;
}

.app-tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    text-indent: 0 !important;
    border-radius: 6px;
    padding: 12px 15px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
    font-weight: normal;
    pointer-events: none;
    box-sizing: border-box;
    white-space: normal;
}

.app-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.app-tooltip-container:hover .app-tooltip-text,
.app-tooltip-icon:focus+.app-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.app-tooltip-icon:focus {
    outline: 2px solid #555;
    outline-offset: 2px;
}

.app-reference-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    background-color: #888 !important;
    color: #000 !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: bold !important;
    margin-right: 2px !important;
    vertical-align: middle !important;
    line-height: normal !important;
    text-indent: 0 !important;
    position: relative !important;
    top: -3px !important;
}

/* Reference Modal Styles */
.species-modal-overlay {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.species-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.species-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #555;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.species-modal-close:hover {
    color: #000;
}

.clickable-reference {
    cursor: pointer !important;
    transition: background-color 0.2s;
}

.clickable-reference:hover {
    background-color: #666 !important;
    color: #fff !important;
}

.refs-attr-heading {
    margin-top: 1.5em;
    font-size: 1.25em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    color: #333;
}

.reference-line {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95em;
    padding: 5px 8px;
    border-radius: 4px;
    border-left: 4px solid transparent;
}

.highlighted-ref {
    background-color: #fff4db;
    border-left: 4px solid #f0ad4e;
    font-weight: 500;
}

/* Specific styling for details summary toggles */
details summary {
    color: #15800b;
}

details summary:hover {
    color: #116609;
    text-decoration: underline;
}