﻿:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-login {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-login:hover {
    background: var(--secondary-color);
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}
.welcome-badge i {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide:first-child {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 200px;
}

.search-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.search-input, .search-select {
    width: 100%;
    padding: 0 1rem;
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus, .search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #fff;
}

.btn-search {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    height: 48px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-search:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .search-group {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Property Grid */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.card-image-container {
    position: relative;
    height: 200px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--white);
}

.card-tag.venta {
    background: var(--primary-color);
}

.card-tag.alquiler {
    background: var(--success);
}

.btn-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--danger);
    transition: transform 0.2s;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Property Detail Page */
.detail-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-title h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-location {
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.detail-gallery-container {
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
}

.detail-gallery {
    height: 500px;
    width: 100%;
    position: relative;
    background: #f3f4f6;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Change to contain if full image visibility is preferred */
    cursor: pointer;
}

.detail-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #111;
    overflow-x: auto;
}

.thumbnail-item {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.thumbnail-item.active, .thumbnail-item:hover {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-main h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-main h2:first-child {
    margin-top: 0;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item span:first-of-type {
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-description {
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Sidebar Contact Card */
.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 6rem;
}

.btn-contact {
    width: 100%;
    padding: 1rem;
    background: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-contact:hover {
    background: #000;
}

.contact-card .btn-whatsapp {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-favorite-detail {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--danger);
    transition: transform 0.2s;
    padding: 0.25rem;
}

.btn-favorite-detail:hover {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-card {
        position: static;
        order: -1; /* Move contact card to top on mobile/tablet if desired, or keep at bottom */
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .detail-gallery {
        height: 300px;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-price {
        font-size: 2rem;
    }
    
    .detail-title h1 {
        font-size: 1.5rem;
    }
}

/* Property Detail Page */
.detail-container {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-title h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-location {
    font-size: 1.1rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.detail-gallery-container {
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
}

.detail-gallery {
    height: 500px;
    width: 100%;
    position: relative;
    background: #f3f4f6;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: #000;
}

.detail-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #111;
    overflow-x: auto;
}

.thumbnail-item {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.thumbnail-item.active, .thumbnail-item:hover {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detail-main h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.detail-main h2:first-child {
    margin-top: 0;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item span:first-of-type {
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-description {
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Sidebar Contact Card */
.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 6rem;
}

.btn-contact {
    width: 100%;
    padding: 1rem;
    background: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-contact:hover {
    background: #000;
}

.contact-card .btn-whatsapp {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-favorite-detail {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--danger);
    transition: transform 0.2s;
    padding: 0.25rem;
}

.btn-favorite-detail:hover {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-card {
        position: static;
        order: -1; /* Move contact card to top on mobile/tablet if desired, or keep at bottom */
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .detail-gallery {
        height: 300px;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-price {
        font-size: 2rem;
    }
    
    .detail-title h1 {
        font-size: 1.5rem;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1rem;
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 4rem 1rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-color);
        padding: 0.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #f3f4f6;
        z-index: 10000; /* Ensure it's above everything */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid #f3f4f6;
    }

    .btn-login {
        display: block;
        text-align: center;
        margin-top: 1rem;
        width: 100%;
    }

    /* Hero Mobile Fixes */
    .hero {
        height: auto;
        min-height: 600px;
        padding: 6rem 1rem 4rem; /* Extra top padding for header */
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.6);
        line-height: 1.2;
    }

    .search-box {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        width: 100%;
        margin: 0;
        border-radius: 1rem;
    }

    .search-group {
        width: 100%;
    }

    .search-input, .search-select {
        height: 48px; /* Taller inputs for touch */
        font-size: 1rem;
    }
    
    .btn-search {
        width: 100%;
        height: 54px;
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }

    /* WhatsApp Button Mobile Overrides */
    .hero-content > div {
        width: 100%;
        padding: 0;
    }

    .hero-content .btn-whatsapp {
        width: 100%;
        max-width: none !important;
        box-sizing: border-box;
        justify-content: center;
        height: 54px;
        font-size: 1.1rem;
    }
}
 
 / *   S e a r c h   P a g e   L a y o u t   * /  
 . s e a r c h - l a y o u t   {  
         d i s p l a y :   f l e x ;  
         g a p :   2 r e m ;  
         a l i g n - i t e m s :   f l e x - s t a r t ;  
         m a r g i n - t o p :   2 r e m ;  
 }  
  
 . s e a r c h - s i d e b a r   {  
         w i d t h :   3 0 0 p x ;  
         f l e x - s h r i n k :   0 ;  
         b a c k g r o u n d :   # f f f ;  
         p a d d i n g :   1 . 5 r e m ;  
         b o r d e r - r a d i u s :   8 p x ;  
         b o x - s h a d o w :   0   2 p x   8 p x   r g b a ( 0 , 0 , 0 , 0 . 0 5 ) ;  
         p o s i t i o n :   s t i c k y ;  
         t o p :   1 0 0 p x ;  
 }  
  
 . s i d e b a r - t i t l e   {  
         m a r g i n - b o t t o m :   1 r e m ;  
         f o n t - s i z e :   1 . 2 r e m ;  
         f o n t - w e i g h t :   7 0 0 ;  
 }  
  
 . s i d e b a r - f o r m   . f o r m - g r o u p   {  
         m a r g i n - b o t t o m :   1 r e m ;  
 }  
  
 . s i d e b a r - f o r m   l a b e l   {  
         d i s p l a y :   b l o c k ;  
         m a r g i n - b o t t o m :   0 . 5 r e m ;  
         f o n t - w e i g h t :   5 0 0 ;  
         f o n t - s i z e :   0 . 9 r e m ;  
 }  
  
 . s i d e b a r - i n p u t   {  
         w i d t h :   1 0 0 % ;  
         p a d d i n g :   0 . 7 5 r e m ;  
         b o r d e r :   1 p x   s o l i d   # d d d ;  
         b o r d e r - r a d i u s :   4 p x ;  
         f o n t - s i z e :   1 r e m ;  
 }  
  
 . s i d e b a r - b t n   {  
         w i d t h :   1 0 0 % ;  
         m a r g i n - t o p :   0 . 5 r e m ;  
 }  
  
 . s e a r c h - r e s u l t s   {  
         f l e x - g r o w :   1 ;  
         m i n - w i d t h :   0 ;   / *   P r e v e n t s   f l e x   i t e m   f r o m   o v e r f l o w i n g   * /  
 }  
  
 . s e o - h e a d e r   {  
         m a r g i n - b o t t o m :   2 r e m ;  
 }  
  
 . s e o - h e a d e r   h 1   {  
         f o n t - s i z e :   2 r e m ;  
         c o l o r :   v a r ( - - p r i m a r y - c o l o r ) ;  
         m a r g i n - b o t t o m :   1 r e m ;  
 }  
  
 . s e o - h e a d e r   p   {  
         f o n t - s i z e :   1 . 1 r e m ;  
         l i n e - h e i g h t :   1 . 6 ;  
         c o l o r :   # 5 5 5 ;  
 }  
  
 . r e s u l t s - s t a t s   {  
         b a c k g r o u n d :   # f 8 f 9 f a ;  
         p a d d i n g :   1 r e m ;  
         b o r d e r - r a d i u s :   8 p x ;  
         m a r g i n - b o t t o m :   2 r e m ;  
         d i s p l a y :   f l e x ;  
         g a p :   2 r e m ;  
         a l i g n - i t e m s :   c e n t e r ;  
         f l e x - w r a p :   w r a p ;  
 }  
  
 / *   M o b i l e   A d j u s t m e n t s   * /  
 @ m e d i a   ( m a x - w i d t h :   9 0 0 p x )   {  
         . s e a r c h - l a y o u t   {  
                 f l e x - d i r e c t i o n :   c o l u m n ;  
         }  
          
         . s e a r c h - s i d e b a r   {  
                 w i d t h :   1 0 0 % ;  
                 p o s i t i o n :   s t a t i c ;  
                 m a r g i n - b o t t o m :   2 r e m ;  
                 z - i n d e x :   1 ;   / *   E n s u r e   i t   d o e s n ' t   o v e r l a p   w e i r d l y   * /  
         }  
          
         . s e o - h e a d e r   h 1   {  
                 f o n t - s i z e :   1 . 7 5 r e m ;  
         }  
          
         . r e s u l t s - s t a t s   {  
                 f l e x - d i r e c t i o n :   c o l u m n ;  
                 a l i g n - i t e m s :   f l e x - s t a r t ;  
                 g a p :   0 . 5 r e m ;  
         }  
 }  
  
 / *   E n h a n c e d   M o b i l e   M e n u   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         . n a v - m e n u   {  
                 d i s p l a y :   n o n e ;  
                 p o s i t i o n :   a b s o l u t e ;  
                 t o p :   1 0 0 % ;  
                 l e f t :   0 ;  
                 w i d t h :   1 0 0 % ;  
                 b a c k g r o u n d :   v a r ( - - w h i t e ) ;  
                 f l e x - d i r e c t i o n :   c o l u m n ;  
                 p a d d i n g :   0 ;  
                 b o x - s h a d o w :   0   1 0 p x   1 5 p x   - 3 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 1 ) ;  
                 b o r d e r - t o p :   1 p x   s o l i d   # f 3 f 4 f 6 ;  
                 z - i n d e x :   1 0 0 0 ;  
                 m a x - h e i g h t :   0 ;  
                 o v e r f l o w :   h i d d e n ;  
                 t r a n s i t i o n :   m a x - h e i g h t   0 . 3 s   e a s e - i n - o u t ;  
         }  
  
         . n a v - m e n u . a c t i v e   {  
                 d i s p l a y :   f l e x ;  
                 m a x - h e i g h t :   5 0 0 p x ;   / *   A r b i t r a r y   l a r g e   n u m b e r   * /  
                 p a d d i n g :   1 r e m ;  
         }  
  
         . n a v - l i n k   {  
                 w i d t h :   1 0 0 % ;  
                 p a d d i n g :   1 r e m ;  
                 t e x t - a l i g n :   c e n t e r ;  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   # f 3 f 4 f 6 ;  
                 d i s p l a y :   b l o c k ;  
         }  
  
         . n a v - l i n k : l a s t - c h i l d   {  
                 b o r d e r - b o t t o m :   n o n e ;  
         }  
  
         . b t n - l o g i n   {  
                 m a r g i n :   1 r e m   a u t o ;  
                 d i s p l a y :   i n l i n e - b l o c k ;  
                 w i d t h :   a u t o ;  
                 m i n - w i d t h :   2 0 0 p x ;  
         }  
 }  
  
 / *   R e s p o n s i v e   I m a g e s   &   E m b e d s   * /  
 i m g ,   v i d e o ,   i f r a m e   {  
         m a x - w i d t h :   1 0 0 % ;  
         h e i g h t :   a u t o ;  
 }  
  
 / *   F i x   H e r o   o n   M o b i l e   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         . h e r o   {  
                 m i n - h e i g h t :   a u t o ;  
                 p a d d i n g :   8 r e m   1 r e m   4 r e m ;   / *   M o r e   t o p   p a d d i n g   f o r   f i x e d   h e a d e r   * /  
         }  
          
         . h e r o - c o n t e n t   h 1   {  
                 f o n t - s i z e :   1 . 7 5 r e m ;  
         }  
 }  
  
 / *   D e t a i l   P a g e   M o b i l e   R e f i n e m e n t s   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         . d e t a i l - c o n t a i n e r   {  
                 p a d d i n g :   0   1 r e m ;  
                 m a r g i n - t o p :   1 r e m ;  
         }  
  
         . d e t a i l - g a l l e r y   {  
                 h e i g h t :   a u t o ;  
                 a s p e c t - r a t i o :   4 / 3 ;  
         }  
          
         . d e t a i l - g a l l e r y   i m g   {  
                 o b j e c t - f i t :   c o v e r ;  
         }  
  
         . c o n t a c t - c a r d   {  
                 m a r g i n - t o p :   2 r e m ;  
                 p o s i t i o n :   s t a t i c ;  
                 o r d e r :   1 0 ;   / *   E n s u r e   i t   s t a y s   a t   b o t t o m   u n l e s s   c r i t i c a l   * /  
         }  
 }  
 