/* ============================================================
   Premier Properties of Charleston — IDX Frame Styles
   premier_properties_frame_19.css
   Target: https://premier-properties.idxframes.com
   Framework: Dynamic IDX / Bootstrap 3.3

   v18: Footer font colors matched to the WordPress site footer for
        crisper contrast — body/copyright text at rgba(255,255,255,0.8),
        links in light gold #cbb05e, hover white.

   v19: Company address added under the footer logo
        (.pp-footer-address — pairs with layout default-09 /
        frame_featured_03).
   ============================================================

   Color Palette:
     Primary Green   : #367D3B   (green — buttons, badges, headings)
     Dark Green      : #255829   (hover states)
     Deep Green      : #1a3d1c   (deep hover borders)
     Accent Gold     : #9c7a1e   (highlights, links)
     Light Green bg  : #f4f6f0   (subtle section bg)
     Tab hover bg    : #e4eada
     White           : #ffffff
     Body text       : #333333
     Muted text      : #777777
     Detail text     : #555555
     Remarks text    : #484848
     Border          : #dde3d4
     Tab border      : #c5d0b0
     Focus outline   : #367D3B
     Price reduced   : #b94a00

   Fonts:
     Page title h1   : 'Playfair Display', Georgia, serif
     h2–h6 / body    : 'Source Sans Pro' (loaded by IDX platform)
     Footer          : 'Libre Baskerville', Georgia, serif

   v07 changes:
     - Footer bottom padding increased from 20px to 40px so the
       copyright and Equal Housing lines are not clipped by the
       iframe bottom edge.
     - Matching fix applied to the mobile (≤767px) footer override.

   v08 changes:
     - Added .br-logo exception to prevent the broker reciprocity
       logo from being stretched to 100% width in grid view.
       The .grid_view img rule targets all images; .br-logo needs
       its natural dimensions preserved.

   v09 changes:
     - Replaced single .br-logo rule with a multi-vector approach:
       class selector, parent container selectors (.s-cut/.s-common),
       and src-attribute selector (img[src*="brlogo"]) to ensure the
       fix survives the IDX platform's own stylesheet overrides.

   v14 changes:
     - Hide "Modify Search Criteria" link on Featured Listings and
       Sullivan's Island pages. Those pages use layout
       premier_properties_frame_featured_01, which adds
       class="pp-no-modify-search" to the body tag. The rule below
       targets only that body class, so the link remains visible on
       all other pages (e.g. the main property search results).

   v16 changes:
     - Removed misplaced .well.well-sm margin-top rule.
     - Added padding-top: 10px to body to create breathing room between
       the hero image and the Save Search / Login bar.
     - Added .well { margin-bottom: 0 } to override Bootstrap's default
       20px bottom margin on the well, which was adding unnecessary space.

   v17 changes:
     - Added :root CSS custom properties (--brand-*) for all colors.
     - Replaced all hex color values throughout the file with
       var(--brand-color-*) references so the palette can be changed
       from one place.
   ============================================================ */


/* ============================================================
   BRAND COLOR TOKENS
   All colors are defined here. Change a value once to update
   every rule that references it throughout this file.
   ============================================================ */
:root {
    --brand-color-primary:         #367D3B;           /* green — buttons, links, headings         */
    --brand-color-primary-dark:    #255829;           /* hover states                             */
    --brand-color-primary-deep:    #1a3d1c;           /* deep hover borders                       */
    --brand-color-primary-shadow:  rgba(54,125,59,0.15);  /* card hover box-shadow               */
    --brand-color-primary-overlay: rgba(54,125,59,0.88);  /* price badge overlay                 */
    --brand-color-accent:          #9c7a1e;           /* gold — highlights, hover links           */
    --brand-color-bg-light:        #f4f6f0;           /* subtle light-green section bg            */
    --brand-color-bg-tab-hover:    #e4eada;           /* nav tab hover bg                         */
    --brand-color-white:           #ffffff;
    --brand-color-text:            #333333;           /* body / heading text                      */
    --brand-color-text-muted:      #777777;           /* secondary / muted text                   */
    --brand-color-text-detail:     #555555;           /* listing detail lines                     */
    --brand-color-text-remarks:    #484848;           /* property remarks paragraphs              */
    --brand-color-border:          #dde3d4;           /* card and form borders                    */
    --brand-color-border-tab:      #c5d0b0;           /* nav tab hover border                     */
    --brand-color-focus:           #367D3B;           /* keyboard :focus-visible outline          */
    --brand-color-danger:          #b94a00;           /* price-reduced / .text-danger             */
}


/* ============================================================
   FEATURED / SULLIVAN'S ISLAND — Hide "Modify Search Criteria"
   Only applies when body carries class pp-no-modify-search,
   set by layout premier_properties_frame_featured_01.html.
   ============================================================ */
body.pp-no-modify-search a.btn-link[href="/property-search.html"] {
    display: none;
}


/* ============================================================
   BASE / BODY
   ============================================================ */
html, body {
    background: var(--brand-color-white);
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    color: var(--brand-color-text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-x: none;  /* suppress horizontal rubber-band on mobile */
    overflow-x: hidden;           /* iOS Safari requires this on html AND body */
}

body {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
    overflow-x: hidden; /* Bootstrap .row negative margins can cause 10-15px bleed on mobile */
    position: relative; /* iOS Safari: required for overflow-x: hidden to take effect */
    padding-top: 10px;  /* breathing room between hero image and Save Search / Login bar */
}

/* Override Bootstrap's default 20px bottom margin on .well */
.well { margin-bottom: 0; }

/* Suppress browser focus outline on mouse click; preserve for keyboard nav */
a:focus          { outline: none; }
a:focus-visible  { outline: 2px solid var(--brand-color-focus); outline-offset: 3px; }

/* Page title — Playfair Display to match parent site hero title */
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--brand-color-text);
    font-weight: 700;
    font-variant: normal; /* override frames-default.css which sets small-caps */
    letter-spacing: 1px;
}

/* Subheadings — Source Sans Pro unchanged */
h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    color: var(--brand-color-text);
    font-weight: 600;
}

a {
    color: var(--brand-color-primary);
    text-decoration: none;
}
a:hover, a:focus {
    color: var(--brand-color-accent);
    text-decoration: none;
}

img { max-width: 100%; height: auto; }


/* ============================================================
   LAYOUT
   ============================================================ */
.section { padding: 20px 0; }
.section__spacer { padding: 24px 0; }
.main-content { background: var(--brand-color-white); }

.container-fluid-fixed {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .section, .section__spacer { padding: 14px 0; }
    body { padding-left: 15px; padding-right: 15px; }
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-weight: 600;
    border-radius: 3px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary,
.btn-primary:visited {
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary-dark);
    color: var(--brand-color-white);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--brand-color-primary-dark);
    border-color: var(--brand-color-primary-deep);
    color: var(--brand-color-white);
}

.btn-default {
    color: var(--brand-color-primary);
    border-color: var(--brand-color-border);
    background-color: var(--brand-color-white);
}
.btn-default:hover,
.btn-default:focus {
    background-color: var(--brand-color-bg-light);
    border-color: var(--brand-color-primary);
    color: var(--brand-color-primary);
}

.btn-success {
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary-dark);
    color: var(--brand-color-white);
}
.btn-success:hover,
.btn-success:focus {
    background-color: var(--brand-color-primary-dark);
    border-color: var(--brand-color-primary-deep);
    color: var(--brand-color-white);
}

.btn-link {
    color: var(--brand-color-primary);
    font-weight: 600;
}
.btn-link:hover { color: var(--brand-color-accent); }


/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control:focus {
    border-color: var(--brand-color-primary);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px rgba(75,94,46,.4);
    outline: 0;
}

.input-group-btn .btn-default {
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary-dark);
    color: var(--brand-color-white);
}
.input-group-btn .btn-default:hover {
    background-color: var(--brand-color-primary-dark);
    color: var(--brand-color-white);
}


/* ============================================================
   NAV TABS
   ============================================================ */
.nav-tabs > li > a {
    color: var(--brand-color-primary);
    background-color: var(--brand-color-bg-light);
    border-color: var(--brand-color-border) var(--brand-color-border) transparent;
    margin-right: 4px;
    font-weight: 600;
}
.nav-tabs > li > a:hover {
    background-color: var(--brand-color-bg-tab-hover);
    border-color: var(--brand-color-border-tab) var(--brand-color-border-tab) transparent;
    color: var(--brand-color-primary-dark);
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    color: var(--brand-color-white);
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary) var(--brand-color-primary) transparent;
    cursor: default;
    top: 0;
}


/* ============================================================
   LISTING GRID VIEW
   ============================================================ */
.myrsol-search-controls,
.myrsol-sort-bar,
.listings-toolbar,
.search-toolbar {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--brand-color-border);
    padding-bottom: 10px;
}

.main-content h1,
.main-content h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
}

.main-content a[href*="criteria"],
.search-criteria-link,
.modify-search-link {
    color: var(--brand-color-primary);
    font-size: 14px;
    font-weight: 600;
}
.main-content a[href*="criteria"]:hover { color: var(--brand-color-accent); }

.myrsol-idx-summary,
.listing-card,
.prop-wrap {
    background: var(--brand-color-white);
    border: 1px solid var(--brand-color-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow 0.15s ease;
}
.myrsol-idx-summary:hover,
.listing-card:hover,
.prop-wrap:hover {
    box-shadow: 0 3px 12px var(--brand-color-primary-shadow);
}

.has-ribbon:before,
.ribbon,
.badge-featured,
span.featured-badge {
    background-color: var(--brand-color-primary) !important;
    color: var(--brand-color-white) !important;
}

.grid_view .has-ribbon:before {
    background-color: var(--brand-color-primary);
    color: var(--brand-color-white);
}
.grid_view .has-ribbon:after {
    border-top-color: var(--brand-color-primary-dark);
    border-left-color: var(--brand-color-primary-dark);
}

.myrsol-idx-summary .listing-img,
.glider-pic,
.prop-img,
.listing-photo {
    position: relative;
    overflow: visible;
    height: auto !important;
}

.myrsol-idx-summary .listing-img img,
.glider-pic img,
.prop-img img,
.listing-photo img,
.grid_view img {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: unset !important;
}

/* ============================================================
   BROKER RECIPROCITY LOGO — preserve natural size in all views
   Multi-vector: class, parent container, and src attribute.
   Prevents .grid_view img { width:100% } from stretching the
   small BR gif. All rules use !important to beat platform CSS.
   ============================================================ */
img.br-logo,
.br-logo,
.grid_view img.br-logo,
.grid_view .br-logo,
.s-cut img,
.s-common img,
img[src*="brlogo"],
img[src*="board_logos"] {
    width: auto !important;
    height: auto !important;
    max-width: 120px !important;
    max-height: 32px !important;
    display: inline-block !important;
    object-fit: unset !important;
}

.myrsol-idx-summary .price,
.listing-price,
.glider-content .price {
    color: var(--brand-color-white);
    background-color: var(--brand-color-primary-overlay);
    font-weight: 700;
}

.myrsol-idx-summary h3,
.myrsol-idx-summary .address,
.listing-address {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-color-text);
    margin-top: 8px;
    margin-bottom: 4px;
}

.myrsol-idx-summary .text-muted,
.listing-sub,
.listing-mls {
    color: var(--brand-color-text-muted);
    font-size: 13px;
}

.text-danger,
.price-reduced {
    color: var(--brand-color-danger);
    font-weight: 600;
}

.myrsol-idx-summary .listing-details,
.lowbig ul li,
.listing-stats li {
    font-size: 13px;
    color: var(--brand-color-text-detail);
}

.myrsol-idx-summary .btn,
.listing-card .btn,
.ftr-vd,
a.ftr-vd {
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary-dark);
    color: var(--brand-color-white);
    font-weight: 600;
    border-radius: 0 0 3px 3px;
    text-align: center;
    display: block;
    padding: 7px 14px;
    transition: background-color 0.15s ease;
}
.myrsol-idx-summary .btn:hover,
.listing-card .btn:hover,
.ftr-vd:hover,
a.ftr-vd:hover {
    background-color: var(--brand-color-primary-dark);
    border-color: var(--brand-color-primary-deep);
    color: var(--brand-color-white);
    text-decoration: none;
}

.btn-save-listing,
.save-listing-btn,
.wishlist-btn { color: var(--brand-color-primary); }
.btn-save-listing:hover,
.save-listing-btn:hover { color: var(--brand-color-accent); }

.pagination > li > a,
.pagination > li > span {
    color: var(--brand-color-primary);
    border-color: var(--brand-color-border);
}
.pagination > li > a:hover,
.pagination > li > span:hover {
    background-color: var(--brand-color-bg-light);
    border-color: var(--brand-color-primary);
    color: var(--brand-color-primary);
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary-dark);
    color: var(--brand-color-white);
}


/* ============================================================
   LISTING DETAIL VIEW
   ============================================================ */
.listings_view .myrsol-idx-common span,
.listings_view .details-onecol-grouped p strong,
.myrsol-idx-common div span {
    color: var(--brand-color-primary);
    font-weight: 600;
}

.listings_view .details-onecol-grouped h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-color-primary);
    border-bottom: 1px solid var(--brand-color-border);
    padding-bottom: 4px;
    margin-bottom: 8px;
    display: block;
}

.listings_view .remarks p { color: var(--brand-color-text-remarks); }


/* ============================================================
   SEARCH / ADVANCED SEARCH HIGHLIGHT
   ============================================================ */
#property_search .ms-choice span:not([class="placeholder"]),
#property_search .selectize-input .item[data-value]:not([data-value=""]),
#property_search .select2-container .select2-selection__rendered[title]:not([title="Any"]),
#property_search .multiselect.dropdown-toggle[title]:not([title="None selected"]),
#property_search input:not(:placeholder-shown) {
    color: var(--brand-color-primary);
    font-weight: bold;
    border: 2px solid var(--brand-color-primary);
    padding: 0 5px;
    display: inline-block;
}

.select2-container--bootstrap .select2-results > .select2-results__options {
    max-height: 250px;
}

.search-criteria .criteria-item {
    padding: 2px 5px;
    border: 1px solid var(--brand-color-border);
    margin-bottom: 8px;
    border-radius: 3px;
}
.search-criteria .criteria-item span {
    color: var(--brand-color-primary);
    font-weight: 700;
}


/* ============================================================
   MAP / VIEW TOGGLES
   ============================================================ */
.view-toggle .btn.active,
.view-toggle .btn:focus,
.listing-view-toggle .active {
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary-dark);
    color: var(--brand-color-white);
}


/* ============================================================
   FOOTER — Libre Baskerville, unchanged
   ============================================================ */
.pp-footer {
    background-color: var(--brand-color-primary);
    color: var(--brand-color-white);
    padding: 32px 24px 40px;   /* bottom: 20px → 40px to prevent clipping */
    font-family: 'Libre Baskerville', Georgia, serif;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: 40px;
}

.pp-footer *,
.pp-footer *::before,
.pp-footer *::after {
    box-sizing: border-box;
}

.pp-footer-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
}

.pp-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    margin-bottom: 16px;
}

.pp-footer-logo img {
    max-height: 105px;
    width: auto;
    background: var(--brand-color-white);
    padding: 4px 6px;
    display: block;
}

.pp-footer-address {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.8);   /* v19 */
    font-size: 13px;
    line-height: 1.5;
    font-variant: normal;
    letter-spacing: normal;
}

.pp-footer-info p { margin: 4px 0; color: var(--brand-color-white); }

.pp-footer-tagline {
    font-size: 15px;
    font-variant: small-caps;
    letter-spacing: 1.5px;
    margin-bottom: 8px !important;
    color: #cbb05e !important;   /* v18: light gold, matches WP footer links */
}

.pp-footer-phone-line {
    font-size: 18px;
    font-variant: small-caps;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.pp-footer-phone-line a { color: #cbb05e; text-decoration: none; }          /* v18 */
.pp-footer-phone-line a:hover { color: #ffffff; }                              /* v18 */

.pp-footer-nav ul { list-style: none; margin: 0; padding: 0; }
.pp-footer-nav ul li { margin-bottom: 6px; }

.pp-footer-nav ul li a {
    color: #cbb05e;                       /* v18: matches WP footer links */
    text-decoration: none;
    font-variant: small-caps;
    font-size: 14px;
    letter-spacing: 1.5px;
    transition: color 0.2s ease;
}

.pp-footer-nav ul li a:hover { color: #ffffff; }                               /* v18 */

.pp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);     /* v18: crisper, matches WP footer */
}

.pp-footer-eho {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);     /* v18: crisper, matches WP footer */
}

.pp-footer-eho-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    opacity: 0.7;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
    html, body { font-size: 14px; }

    .main-content h1,
    .main-content h2 { font-size: 18px; }

    .myrsol-idx-summary,
    .listing-card,
    .prop-wrap { margin-bottom: 14px; }

    .btn-group-custom > div {
        display: block !important;
        width: 100% !important;
    }
    .btn-group-custom > div a {
        margin: 0 0 5px 0 !important;
        border-radius: 3px !important;
        display: block;
        text-align: center;
    }

    .pp-footer {
        padding: 24px 16px 40px;  /* bottom: 20px → 40px to prevent clipping */
        margin-left: -15px;
        margin-right: -15px;
    }

    .pp-footer-top { gap: 16px; }

    .pp-footer-logo img { max-height: 80px; }

    .pp-footer-tagline { font-size: 13px; }

    .pp-footer-phone-line { font-size: 16px; }

    .pp-footer-nav ul li a { font-size: 13px; }

    .pp-footer-bottom { font-size: 11px; }
}