/* ========================================
   PAGE HERO (Gallery, Shop, Contact)
======================================== */
.page-hero {
    background: var(--brand-red);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 160px;
    padding-bottom: 70px;
}

.page-hero::before {
    display: none;
}

.page-hero .container {
    position: relative;
    z-index: 10;
}

.page-hero .page-title,
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff !important;
    margin-bottom: 10px;
    text-shadow: none;
    font-weight: 400;
}

.page-hero .page-subtitle,
.page-hero p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: none;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}



/* ========================================
   GALLERY PAGE STYLES
======================================== */
.gallery-section {
    padding: 60px 0;
}

/* Filters */
.gallery-filters {
    margin-bottom: 50px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #666;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-height: 44px;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--brand-red);
}

/* Mobile filter buttons */
@media (max-width: 768px) {
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-bottom: 40px;
    }

    .filter-btn {
        flex: 0 1 auto;
        padding: 12px 20px;
        margin: 0;
        font-size: 0.9rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 25px;
        white-space: nowrap;
    }

    .filter-btn.active {
        background: var(--brand-red);
        color: white;
        border-color: var(--brand-red);
    }

    .filter-btn:active {
        transform: scale(0.95);
    }
}

/* Flex Masonry Grid */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
    /* Hidden by default */
}

.gallery-item.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.gallery-inner {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-inner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-inner:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 8, 8, 0.6);
    /* Dark Red Tint */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-inner:hover .overlay {
    opacity: 1;
}

.overlay .icon {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
}

.overlay .title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 92vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 92vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    transition: opacity 0.2s ease;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px;
    z-index: 10001;
    transition: color 0.3s, transform 0.2s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--brand-red);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 3rem;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ========================================
   CONTACT PAGE STYLES (PREMIUM REVAMP)
======================================== */
.contact-section {
    padding: 60px 0 30px 0;
}

.contact-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 10px;
}

/* Info Side */
.contact-info-premium .sub-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.premium-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.icon-wrap {
    width: 36px;
    height: 36px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 50%;
    color: var(--brand-red);
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333;
    margin-bottom: 2px;
}

.info-text span,
.info-text a {
    color: #666;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.info-text a:hover {
    color: var(--brand-red);
}

/* Social Premium */
.social-premium {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-premium a {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-premium a:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateY(-2px);
}

/* Premium Form */
.contact-form-premium {
    background: #fff;
    padding: 30px 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    border-top: 3px solid var(--brand-red);
    border-radius: 2px;
}

.form-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #333;
}

.form-desc {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
    font-style: italic;
}

.clean-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.clean-form input,
.clean-form textarea,
.clean-form select {
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    transition: border-color 0.3s ease;
}

.clean-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.clean-form input:focus,
.clean-form textarea:focus,
.clean-form select:focus {
    outline: none;
    border-bottom-color: var(--brand-red);
}

.clean-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.clean-form input:focus+label,
.clean-form input:not(:placeholder-shown)+label,
.clean-form textarea:focus+label,
.clean-form textarea:not(:placeholder-shown)+label,
.clean-form select:focus+label,
.clean-form select:valid+label,
.clean-form select+label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--brand-red);
}

/* Keep select labels always up (since they always have visible text) */
.clean-form select+label {
    color: #999;
}

.clean-form select:focus+label {
    color: var(--brand-red);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Mobile: Stack two-column forms */
@media (max-width: 576px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .clean-form input,
    .clean-form textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .submit-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
}

/* Submit Button */
.submit-btn {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    margin-top: 5px;
}

.submit-btn:hover {
    background: #961a12;
}

/* Map */
.map-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 30px 0 0 0;
    line-height: 0;
}

.grayscale-map {
    filter: grayscale(100%);
    transition: filter 0.6s ease;
    display: block;
    width: 100%;
    height: 400px;
}

.grayscale-map:hover {
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid-premium {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-premium {
        padding: 20px;
    }

    .map-section {
        height: 300px;
    }
}

/* ========================================
   SEARCH RESULTS PAGE - Minimal Design
======================================== */
.search-results-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 70vh;
    background: var(--off-white);
}

.search-results-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.search-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--black);
    margin: 0 0 10px 0;
    font-weight: 400;
}

.search-query {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.search-query strong {
    color: var(--black);
}

.results-count {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Results Grid */
.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.search-result-card:first-child {
    border-top: 1px solid var(--border);
}

.search-result-card:hover {
    background: rgba(0, 0, 0, 0.02);
}

.search-result-card .result-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
}

.search-result-card .result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-card .result-content {
    flex: 1;
    min-width: 0;
}

.search-result-card .result-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--black);
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-card .result-price {
    font-size: 0.95rem;
    color: var(--brand-red);
    font-weight: 600;
}

.search-result-card .result-type {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.search-pagination a,
.search-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-pagination a:hover {
    border-color: var(--black);
}

.search-pagination .current {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    border: 1px solid var(--border);
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

.no-results strong {
    color: var(--black);
}

/* Mobile */
@media (max-width: 576px) {
    .search-results-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .search-title {
        font-size: 1.5rem;
    }

    .search-result-card {
        padding: 15px 0;
        gap: 15px;
    }

    .search-result-card .result-image {
        width: 60px;
        height: 60px;
    }

    .search-result-card .result-title {
        font-size: 1rem;
    }
}