/* ============================================================
   Premier Properties of Charleston — IDX Frame Styles
   premier_properties_frame.css
   Target: https://premier-properties.idxframes.com
   Framework: Dynamic IDX / Bootstrap 3.3
   ============================================================

   Color Palette:
     Primary Green   : #4b5e2e   (olive — buttons, badges, headings)
     Dark Green      : #3a4a22   (hover states)
     Accent Gold     : #c9b600   (highlights, links)
     Light Green bg  : #f4f6f0   (subtle section bg)
     White           : #ffffff
     Body text       : #333333
     Muted text      : #777777
     Border          : #dde3d4

   Font: Source Sans Pro (loaded by Dynamic IDX platform)
   ============================================================ */


/* ============================================================
   BASE / BODY
   ============================================================ */
html, body {
    background: #ffffff;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    font-weight: 600;
}

a {
    color: #4b5e2e;
    text-decoration: none;
}
a:hover, a:focus {
    color: #c9b600;
    text-decoration: none;
}

img { max-width: 100%; height: auto; }


/* ============================================================
   LAYOUT — section / container
   30px left/right padding on content body (v02)
   ============================================================ */
.section { padding: 20px 0; }
.section__spacer { padding: 24px 0; }
.main-content { background: #ffffff; }

.container-fluid-fixed {
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 767px) {
    .section, .section__spacer { padding: 14px 0; }
    .container-fluid-fixed { padding-left: 30px; padding-right: 30px; }
}


/* ============================================================
   BUTTONS
   Bootstrap 3.3 overrides to match Premier Properties palette
   ============================================================ */
.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;
}

/* Primary */
.btn-primary,
.btn-primary:visited {
    background-color: #4b5e2e;
    border-color: #3a4a22;
    color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #3a4a22;
    border-color: #2c3819;
    color: #ffffff;
}

/* Default */
.btn-default {
    color: #4b5e2e;
    border-color: #dde3d4;
    background-color: #ffffff;
}
.btn-default:hover,
.btn-default:focus {
    background-color: #f4f6f0;
    border-color: #4b5e2e;
    color: #4b5e2e;
}

/* Success — reuse primary palette */
.btn-success {
    background-color: #4b5e2e;
    border-color: #3a4a22;
    color: #ffffff;
}
.btn-success:hover,
.btn-success:focus {
    background-color: #3a4a22;
    border-color: #2c3819;
    color: #ffffff;
}

/* Outline / secondary actions */
.btn-link {
    color: #4b5e2e;
    font-weight: 600;
}
.btn-link:hover { color: #c9b600; }


/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control:focus {
    border-color: #4b5e2e;
    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: #4b5e2e;
    border-color: #3a4a22;
    color: #ffffff;
}
.input-group-btn .btn-default:hover {
    background-color: #3a4a22;
    color: #ffffff;
}


/* ============================================================
   NAV TABS (search results / detail tabs)
   ============================================================ */
.nav-tabs > li > a {
    color: #4b5e2e;
    background-color: #f4f6f0;
    border-color: #dde3d4 #dde3d4 transparent;
    margin-right: 4px;
    font-weight: 600;
}
.nav-tabs > li > a:hover {
    background-color: #e4eada;
    border-color: #c5d0b0 #c5d0b0 transparent;
    color: #3a4a22;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    color: #ffffff;
    background-color: #4b5e2e;
    border-color: #4b5e2e #4b5e2e transparent;
    cursor: default;
    top: 0;
}


/* ============================================================
   LISTING GRID VIEW — cards
   ============================================================ */

/* Grid/list view toggle toolbar */
.myrsol-search-controls,
.myrsol-sort-bar,
.listings-toolbar,
.search-toolbar {
    margin-bottom: 16px;
    border-bottom: 1px solid #dde3d4;
    padding-bottom: 10px;
}

/* Page heading */
.main-content h1,
.main-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-variant: small-caps;
    letter-spacing: 1px;
}

/* "Modify Search Criteria" link */
.main-content a[href*="criteria"],
.search-criteria-link,
.modify-search-link {
    color: #4b5e2e;
    font-size: 14px;
    font-weight: 600;
}
.main-content a[href*="criteria"]:hover {
    color: #c9b600;
}

/* Listing card wrappers */
.myrsol-idx-summary,
.listing-card,
.prop-wrap {
    background: #ffffff;
    border: 1px solid #dde3d4;
    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 rgba(75,94,46,0.15);
}

/* "Featured" ribbon badge */
.has-ribbon:before,
.ribbon,
.badge-featured,
span.featured-badge {
    background-color: #4b5e2e !important;
    color: #ffffff !important;
}

/* Corner ribbon (::after pseudo-element used by Dynamic IDX grid) */
.grid_view .has-ribbon:before {
    background-color: #4b5e2e;
    color: #ffffff;
}
.grid_view .has-ribbon:after {
    border-top-color: #3a4a22;
    border-left-color: #3a4a22;
}

/* Property image container */
.myrsol-idx-summary .listing-img,
.glider-pic,
.prop-img {
    position: relative;
    overflow: hidden;
}

/* Price tag overlay */
.myrsol-idx-summary .price,
.listing-price,
.glider-content .price {
    color: #ffffff;
    background-color: rgba(75, 94, 46, 0.88);
    font-weight: 700;
}

/* Property address */
.myrsol-idx-summary h3,
.myrsol-idx-summary .address,
.listing-address {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Muted sub-info (city, type, MLS) */
.myrsol-idx-summary .text-muted,
.listing-sub,
.listing-mls {
    color: #777;
    font-size: 13px;
}

/* Price reduction */
.text-danger,
.price-reduced {
    color: #b94a00;
    font-weight: 600;
}

/* Beds/baths/sqft strip */
.myrsol-idx-summary .listing-details,
.lowbig ul li,
.listing-stats li {
    font-size: 13px;
    color: #555;
}

/* "More Details" / "View Details" button */
.myrsol-idx-summary .btn,
.listing-card .btn,
.ftr-vd,
a.ftr-vd {
    background-color: #4b5e2e;
    border-color: #3a4a22;
    color: #ffffff;
    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: #3a4a22;
    border-color: #2c3819;
    color: #ffffff;
    text-decoration: none;
}

/* Save / heart button */
.btn-save-listing,
.save-listing-btn,
.wishlist-btn {
    color: #4b5e2e;
}
.btn-save-listing:hover,
.save-listing-btn:hover {
    color: #c9b600;
}

/* Pagination */
.pagination > li > a,
.pagination > li > span {
    color: #4b5e2e;
    border-color: #dde3d4;
}
.pagination > li > a:hover,
.pagination > li > span:hover {
    background-color: #f4f6f0;
    border-color: #4b5e2e;
    color: #4b5e2e;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: #4b5e2e;
    border-color: #3a4a22;
    color: #ffffff;
}


/* ============================================================
   LISTING DETAIL VIEW
   ============================================================ */
.listings_view .myrsol-idx-common span,
.listings_view .details-onecol-grouped p strong,
.myrsol-idx-common div span {
    color: #4b5e2e;
    font-weight: 600;
}

.listings_view .details-onecol-grouped h4 {
    font-size: 17px;
    font-weight: 700;
    color: #4b5e2e;
    border-bottom: 1px solid #dde3d4;
    padding-bottom: 4px;
    margin-bottom: 8px;
    display: block;
}

.listings_view .remarks p { color: #484848; }


/* ============================================================
   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: #4b5e2e;
    font-weight: bold;
    border: 2px solid #4b5e2e;
    padding: 0 5px;
    display: inline-block;
}

.select2-container--bootstrap .select2-results > .select2-results__options {
    max-height: 250px;
}

/* Search criteria pills */
.search-criteria .criteria-item {
    padding: 2px 5px;
    border: 1px solid #dde3d4;
    margin-bottom: 8px;
    border-radius: 3px;
}
.search-criteria .criteria-item span {
    color: #4b5e2e;
    font-weight: 700;
}


/* ============================================================
   MAP / VIEW TOGGLES
   ============================================================ */
.view-toggle .btn.active,
.view-toggle .btn:focus,
.listing-view-toggle .active {
    background-color: #4b5e2e;
    border-color: #3a4a22;
    color: #ffffff;
}


/* ============================================================
   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;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .main-content h1,
    .main-content h2 { font-size: 20px; }
}