@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:wght@700&display=swap');

/* Reset & Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: var(--font-primary);
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Common Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Shadcn/Radix Based Button System */
.btn-base {
    position: relative;
    inline-size: fit-content;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-xs {
    height: 32px;
    /* h-8 seviyesine çıkarıldı */
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    /* Daha okunaklı */
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-soft {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px; /* Navbar ile aynı hizada olması için 6px yapıldı */
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.map-hero {
    height: 68vh;
    width: 100%;
    border-radius: 0;
    overflow: visible; /* Allowed dropdowns to overflow */
    position: relative;
}

.leaflet-container {
    touch-action: manipulation;
}

.map-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .map-hero__fade {
        height: 72px;
        background: linear-gradient(
            to top,
            var(--bg-light) 0%,
            color-mix(in srgb, var(--bg-light) 45%, transparent) 55%,
            transparent 100%
        );
    }
}

@media (min-width: 769px) {
    #harita {
        padding-top: 96px;
    }

    #harita .map-hero {
        height: calc(68vh + 96px);
    }
}

/* Harita marker cluster */
.map-cluster {
    background: transparent;
    border: none;
}

.map-cluster__bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.map-cluster--md .map-cluster__bubble {
    font-size: 0.875rem;
}

.map-cluster--lg .map-cluster__bubble {
    font-size: 0.9375rem;
    border-width: 3px;
}

.custom-pin {
    background: transparent;
    border: none;
}

.map-pin {
    position: relative;
    width: 28px;
    height: 28px;
}

.map-pin__body {
    position: relative;
    z-index: 2;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    background: var(--primary-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.map-pin__body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #fff;
}

.custom-pin--popular .map-pin__glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.95) 0%, rgba(255, 193, 7, 0.45) 42%, rgba(255, 193, 7, 0) 72%);
    animation: map-pin-popular-glow 1.6s ease-in-out infinite;
    z-index: 1;
}

.custom-pin--popular .map-pin__body {
    background: linear-gradient(145deg, #ffe566 0%, #ffc107 55%, #ff9800 100%);
    border-color: #fff8dc;
    box-shadow:
        0 0 0 3px rgba(255, 214, 0, 0.45),
        0 0 16px rgba(255, 193, 7, 0.95),
        0 0 28px rgba(255, 152, 0, 0.55);
    animation: map-pin-popular-pulse 1.6s ease-in-out infinite;
}

.map-cluster--popular .map-cluster__bubble {
    background: linear-gradient(145deg, #ffe566 0%, #ffc107 55%, #ff9800 100%);
    color: #5c3d00;
    border-color: #fff8dc;
    box-shadow:
        0 0 0 3px rgba(255, 214, 0, 0.4),
        0 0 14px rgba(255, 193, 7, 0.85),
        0 0 24px rgba(255, 152, 0, 0.45);
    animation: map-pin-popular-pulse 1.6s ease-in-out infinite;
}

@keyframes map-pin-popular-glow {
    0%, 100% {
        opacity: 0.75;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes map-pin-popular-pulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.12);
    }
}

.leaflet-popup.map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: 0 16px 40px rgba(27, 41, 29, 0.2);
}

.leaflet-popup.map-popup .leaflet-popup-content {
    margin: 0;
    width: 220px !important;
}

.leaflet-popup.map-popup .leaflet-popup-tip {
    background: #fff;
    border: none;
    box-shadow: none;
}

.leaflet-popup.map-popup .leaflet-popup-close-button {
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #5a6b60 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.leaflet-popup.map-popup .leaflet-popup-close-button:hover {
    background: #fff;
    color: #2d4030 !important;
}

.leaflet-popup.map-popup .product-card--map {
    width: 220px;
    margin: 0;
    border-radius: 10px;
}

.leaflet-popup.map-popup .product-card--map:hover {
    box-shadow: none;
}

.leaflet-popup.map-popup .product-card--map .product-card__image {
    aspect-ratio: 16 / 9;
    max-height: 112px;
}

.leaflet-popup.map-popup .product-card--map .product-card__info {
    padding: 8px 10px 9px;
    gap: 0;
}

.leaflet-popup.map-popup .product-card--map .product-card__head {
    margin-bottom: 2px;
    gap: 6px;
    align-items: center;
}

.leaflet-popup.map-popup .product-card--map .product-card__title {
    font-size: 0.82rem;
    line-height: 1.25;
    font-weight: 600;
    -webkit-line-clamp: 2;
}

.leaflet-popup.map-popup .product-card--map .product-card__location {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.2;
}

.leaflet-popup.map-popup .product-card--map .product-card__footer {
    padding-top: 4px;
    margin-top: 2px;
    gap: 0;
    border-top: 1px solid #efefef;
    justify-content: flex-start;
}

.leaflet-popup.map-popup .product-card--map .product-card__review-count {
    font-size: 0.68rem;
}

.leaflet-popup.map-popup .product-card--map .product-card__rating {
    padding: 2px 5px;
    font-size: 0.68rem;
    gap: 2px;
}

.leaflet-popup.map-popup .product-card--map .product-card__rating svg {
    width: 9px;
    height: 9px;
}

.leaflet-popup.map-popup .product-card--map.product-card--popular .product-card__info {
    padding: 8px 10px 9px;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: transparent !important;
}

.map-search-wrapper {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 8px 15px;
    border: 1px solid rgba(0,0,0,0.1);
}

.map-search-bar {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.search-input-group svg {
    color: var(--primary-color);
    opacity: 0.7;
}

.search-input-group input, 
.search-input-group select {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--primary-dark);
    outline: none;
    font-family: inherit;
    padding: 10px 0;
}

.search-divider {
    width: 1px;
    height: 30px;
    background: #eee;
}

.btn-search-map {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 10px;
}

.btn-search-map:hover {
    background: var(--primary-dark);
}

/* Choices.js Scoped to Map Search Bar ONLY */
.map-search-bar .choices__inner {
    background-color: transparent !important;
    border: none !important;
    padding: 5px 15px !important;
    min-height: 45px !important;
    display: flex;
    align-items: center;
}
.map-search-bar .choices__list--dropdown {
    z-index: 12000 !important;
}
.map-search-bar .choices__list--dropdown .choices__input {
    padding: 10px 17px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    margin: 10px !important;
    width: calc(100% - 20px) !important;
}
.map-search-bar .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: var(--primary-color) !important;
    color: white !important;
}
.map-search-bar .choices__list--single {
    padding: 4px 10px !important;
}
.map-search-bar .choices[data-type*="select-one"]::after {
    border-color: var(--primary-dark) transparent transparent transparent !important;
}
.map-search-bar .choices.is-focused .choices__inner {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(45, 64, 48, 0.1);
}

/* Map Specific Choices.js Overrides */
.map-search-bar .choices {
    width: 100%;
    margin-bottom: 0;
}

.map-search-bar .choices__inner {
    background: transparent !important;
    border: none !important;
    min-height: unset !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.map-search-bar .choices__input {
    background-color: transparent !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.map-search-bar .choices.is-focused .choices__inner {
    border: none !important;
    box-shadow: none !important;
}

.map-search-bar .choices__list--single {
    padding: 0 !important;
    font-weight: 400;
}

.map-search-bar .choices[data-type*="select-one"]::after {
    border: none !important;
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    transition: 0.3s;
}

.map-search-bar .choices.is-open[data-type*="select-one"]::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

.map-search-bar .choices__list--single .choices__item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    padding-right: 45px !important;
}

.map-search-bar .choices__button {
    position: absolute !important;
    right: 22px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border-left: none !important;
    margin: 0 !important;
    opacity: 0.8;
    transition: 0.2s;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L9 9M9 1L1 9' stroke='%23e74c3c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.map-search-bar .choices__button:hover {
    opacity: 1;
}

/* Section Styles */

.section-header,
.section-title {
    margin-bottom: 20px;
}

.section-header h2,
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #454040; /* Requested color */
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.section-header p,
.section-title p {
    color: #717171;
    font-size: 1.05rem;
    max-width: 600px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .section-header h2,
    .section-title h2 {
        font-size: 1.6rem;
    }
    .section-header p,
    .section-title p {
        font-size: 0.95rem;
    }
}

.section-header.text-center,
.section-title.text-center {
    text-align: center;
}

.section-header.text-center p,
.section-title.text-center p {
    margin-left: auto;
    margin-right: auto;
}

/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: var(--bg-white);
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

.modal-overlay.active .auth-modal {
    transform: translateY(0);
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.3s;
}

.auth-tab.active {
    color: var(--text-main);
    background: var(--bg-white);
    border-bottom: 2px solid var(--secondary-color);
}

.auth-content {
    padding: 30px;
}

.auth-form {
    display: none;
}
/* Bottom Sheet (Drawer) Styles */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.bottom-sheet-overlay.active {
    visibility: visible;
    opacity: 1;
}

.bottom-sheet {
    position: relative; /* Changed from fixed to work with flex container */
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 1200px;
    height: 92vh; /* Increased fixed height */
    background: var(--bg-white);
    border-radius: 24px 24px 0 0;
    z-index: 10001;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -15px 50px rgba(0,0,0,0.15);
}

.bottom-sheet-overlay.active .bottom-sheet {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    background: #ddd;
    border-radius: 10px;
    margin: 12px auto;
    flex-shrink: 0;
}

/* ==========================================
   Search Results Modal Styles
========================================== */

/* Filter Row */
.sr-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sr-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sr-filter-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sr-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f8f8;
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-primary);
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.2s;
}

.sr-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* Results Grid */
.sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* Card */
.sr-card {
    display: block;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.sr-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sr-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.sr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sr-card-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.95);
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.sr-card-body {
    padding: 14px 16px;
}

.sr-card-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-card-location {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty state */
.sr-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.sr-empty p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.sr-empty small {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .sr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sr-card-img {
        height: 120px;
    }

    .sr-card-body {
        padding: 10px 12px;
    }

    .sr-card-title {
        font-size: 0.8125rem;
    }

    .sr-card-location {
        font-size: 0.72rem;
    }
}

@media (max-width: 600px) {
    .sr-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.bottom-sheet-header {
    padding: 0 24px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-sheet-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.bottom-sheet-close {
    background: #f0f0f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: 0.2s;
}

.bottom-sheet-close:hover {
    background: #e0e0e0;
}

.bottom-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .bottom-sheet {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: 0.3s;
    background-color: white;
    color: var(--text-main);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    cursor: pointer;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 64, 48, 0.1);
}

.btn-auth {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-auth:hover {
    background: var(--primary-dark);
}

/* Profile Dashboard Styles */
.profile-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.profile-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin-bottom: 5px;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: var(--primary-color);
    color: white;
}

.profile-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* Header Mobile Adjustments */
    .logo a {
        font-size: 1.3rem !important;
    }

    .btn-soft {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Navigation Bar (Orange Bar) Mobile */
    .nav-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .nav-scroll-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .nav-list {
        white-space: nowrap;
        gap: 0.5rem !important;
    }

    /* Profile Wrapper Mobile */
    .profile-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-top: 30px !important;
    }

    .profile-sidebar {
        order: 2;
    }

    .profile-content {
        order: 1;
        padding: 20px !important;
    }

    /* Auth Modal Mobile */
    .auth-modal {
        max-width: 90%;
        margin: 0 auto;
    }
    /* Map Section Mobile */
    .map-hero {
        height: 365px !important;
    }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background: #333;
    color: white;
    padding: 14px 28px;
    border-radius: 50px; /* Pill shape */
    margin-bottom: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    animation: toastSlideDown 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.1);
}

.toast.error {
    background: #e74c3c;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.2);
}

.toast.success {
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(45, 64, 48, 0.2);
}

@keyframes toastSlideDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .toast-container {
        width: 90%;
        top: 15px;
    }
    .toast {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Panel UI (Dashboard, My Bungalows, Settings, etc.)
   ========================================================================== */

.panel-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding-top: 50px;
    align-items: start;
}

.panel-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 30px 20px;
}

.panel-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-menu li {
    margin-bottom: 5px;
}

.panel-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}

.panel-menu a:hover {
    background: #f5f7f6;
    color: var(--primary-color);
}

.panel-menu a.active {
    background: var(--primary-color);
    color: #fff;
}

.panel-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.panel-header {
    margin-bottom: 40px;
}

.panel-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.panel-header p {
    color: #888;
    margin-top: 5px;
    font-size: 0.95rem;
}

/* Panel Buttons & Forms */
.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
    font-family: var(--font-primary);
}

.panel-btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.panel-btn-primary:hover {
    background: var(--primary-dark);
}

.panel-btn-outline {
    background: transparent;
    border-color: #ddd;
    color: #555;
}

.panel-btn-outline:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.panel-btn-danger {
    background: #fff5f5;
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.1);
}

.panel-btn-danger:hover {
    background: #fee2e2;
}

.panel-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: 0.2s;
    outline: none;
}

.panel-input:focus {
    border-color: var(--primary-color);
}

.pricing-fields__hint {
    margin: 0 0 12px;
    color: #888;
    font-size: 0.85rem;
}

.pricing-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.2fr) auto;
    gap: 10px;
    align-items: center;
}

.pricing-row__amount-wrap {
    position: relative;
}

.pricing-row__currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.9rem;
    pointer-events: none;
}

.pricing-row__amount {
    padding-left: 34px;
}

.pricing-row__remove {
    width: 42px;
    height: 42px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    color: #999;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s;
}

.pricing-row__remove:hover:not(:disabled) {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.25);
    background: #fff5f5;
}

.pricing-row__remove:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pricing-fields__add {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px dashed #cfd8d1;
    border-radius: 10px;
    background: #f8faf8;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.pricing-fields__add:hover:not(:disabled) {
    background: #eef4ef;
    border-color: var(--primary-color);
}

.pricing-fields__add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bungalow-prices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bungalow-prices-list__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bungalow-prices-list__row--featured .bungalow-prices-list__value strong {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1B291D;
    letter-spacing: -0.5px;
}

.bungalow-prices-list__row--featured .bungalow-prices-list__label {
    color: #1B291D;
    font-weight: 600;
}

.bungalow-prices-list__label {
    color: #5E6E61;
    font-size: 0.9rem;
    font-weight: 500;
}

.bungalow-prices-list__value {
    text-align: right;
    color: #1B291D;
}

.bungalow-prices-list__value strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.bungalow-prices-list__suffix {
    color: #5E6E61;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 4px;
}

.bungalow-prices-compact--clickable {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}

.bungalow-prices-compact--clickable:active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(0.98);
}

.bungalow-prices-list--modal .bungalow-prices-list__row--featured .bungalow-prices-list__value strong,
.bungalow-prices-list--modal .bungalow-prices-list__row:first-child .bungalow-prices-list__value strong {
    font-size: 1.05rem;
}

.bungalow-prices-list--modal {
    gap: 14px;
}

.bungalow-prices-list--modal .bungalow-prices-list__row {
    padding: 12px 0;
    border-bottom: 1px solid #eef1ee;
}

.bungalow-prices-list--modal .bungalow-prices-list__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.prices-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.prices-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.prices-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 19, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.prices-modal.active .prices-modal__backdrop {
    opacity: 1;
}

.prices-modal__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition:
        transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.28s ease;
    will-change: transform, opacity;
}

.prices-modal.active .prices-modal__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.prices-modal .bungalow-prices-list__row {
    opacity: 0;
    transform: translateY(10px);
    transition:
        transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.28s ease;
}

.prices-modal.active .bungalow-prices-list__row {
    opacity: 1;
    transform: translateY(0);
}

.prices-modal.active .bungalow-prices-list__row:nth-child(1) { transition-delay: 0.06s; }
.prices-modal.active .bungalow-prices-list__row:nth-child(2) { transition-delay: 0.1s; }
.prices-modal.active .bungalow-prices-list__row:nth-child(3) { transition-delay: 0.14s; }
.prices-modal.active .bungalow-prices-list__row:nth-child(4) { transition-delay: 0.18s; }

.prices-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.prices-modal__head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.prices-modal__close {
    border: none;
    background: #f3f4f6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

@media (max-width: 768px) {
    .prices-modal {
        padding: 0;
        align-items: flex-end;
    }

    .prices-modal__panel {
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        padding: 18px 16px 24px;
        transform: translateY(100%);
    }

    .prices-modal.active .prices-modal__panel {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .pricing-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "period period"
            "amount remove";
    }

    .pricing-row__period {
        grid-area: period;
    }

    .pricing-row__amount-wrap {
        grid-area: amount;
    }

    .pricing-row__remove {
        grid-area: remove;
    }
}

.panel-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: 0.2s;
    outline: none;
    resize: vertical;
    min-height: 100px;
}

.panel-textarea:focus {
    border-color: var(--primary-color);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.panel-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-weight: 700;
}

.panel-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Panel Bungalow Card */
.panel-list-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.panel-list-card:hover {
    background: #fafafa;
}

.panel-list-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.panel-list-info {
    flex: 1;
}

.panel-list-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.panel-list-info p {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: #888;
}

.panel-list-actions {
    display: flex;
    gap: 8px;
}

/* Bungalow list - Clean card design */
.bungalow-list--spacious {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bungalow-list--spacious .card {
    background: #ffffff;
    border: 1px solid #e8e8e6;
    border-radius: 12px;
    width: 100%;
    display: flex;
    gap: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.bungalow-list--spacious .card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.bungalow-list--spacious .card__image {
    width: 160px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.bungalow-list--spacious .card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
}

.bungalow-list--spacious .card__body {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bungalow-list--spacious .meta__owner {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
}

.bungalow-list--spacious .meta__owner svg {
    flex-shrink: 0;
}

.bungalow-list--spacious .meta__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #aaa;
}

.bungalow-list--spacious .meta__location svg {
    flex-shrink: 0;
}

.bungalow-list--spacious .card__title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin: 0;
}

.bungalow-list--spacious .card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bungalow-list--spacious .price__amount {
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.bungalow-list--spacious .price__unit {
    font-size: 12px;
    color: #aaa;
}

.bungalow-list--spacious .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.bungalow-list--spacious .badge--live {
    background: #edf7ee;
    color: #2a7a35;
    border: 1px solid #c3e6c7;
}

.bungalow-list--spacious .badge--live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2a7a35;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.bungalow-list--spacious .badge--waiting {
    background: #fff8e8;
    color: #ab7200;
    border: 1px solid #f5e0ac;
}

.bungalow-list--spacious .badge--failed {
    background: #fff1f1;
    color: #c0392b;
    border: 1px solid #f3cccc;
}

.bungalow-list--spacious .badge--draft {
    background: #f4f4f2;
    color: #888;
    border: 1px solid #e0e0de;
}

.bungalow-list--spacious .card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0ee;
}

.bungalow-list--spacious .card__footer .badge {
    margin-right: auto;
}

.bungalow-list--spacious .card__footer .btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.bungalow-list--spacious .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.bungalow-list--spacious .btn--outline-danger {
    background: transparent;
    border-color: #e0c4c4;
    color: #c0392b;
}

.bungalow-list--spacious .btn--outline-danger:hover {
    background: #fff5f5;
    border-color: #c0392b;
}

.bungalow-list--spacious .btn--outline {
    background: transparent;
    border-color: #e0e0de;
    color: #555;
}

.bungalow-list--spacious .btn--outline:hover {
    background: #f8f8f7;
    border-color: #bbb;
    color: #222;
}

.bungalow-list--spacious .btn--ghost {
    background: transparent;
    border-color: transparent;
    color: #888;
    padding: 6px 8px;
}

.bungalow-list--spacious .btn--ghost:hover {
    background: #f4f4f2;
    color: #333;
}

.bungalow-list--spacious .btn--danger {
    background: transparent;
    border-color: transparent;
    color: #c0392b;
    padding: 6px 8px;
}

.bungalow-list--spacious .btn--danger:hover {
    background: #fff5f5;
    color: #c0392b;
}

.bungalow-list--spacious .btn--primary {
    background: #2a7a35;
    border-color: #2a7a35;
    color: #fff;
}

.bungalow-list--spacious .btn--primary:hover {
    background: #236b2d;
    border-color: #236b2d;
}

.bungalow-list--spacious .btn svg {
    width: 12px;
    height: 12px;
}

.bungalow-list--spacious .divider {
    width: 1px;
    height: 14px;
    background: #e8e8e6;
    margin: 0 2px;
}

.bungalow-list--spacious .card {
    position: relative;
}

.bungalow-list--spacious .card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    transition: all 0.15s;
    color: #888;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
}

.bungalow-list--spacious .card__fav:hover {
    background: #fff;
    color: #e74c3c;
}

.bungalow-list--spacious .card__fav.active {
    color: #e74c3c;
}

.bungalow-list--spacious .card__fav svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .bungalow-list--spacious .card {
        flex-direction: column;
    }

    .bungalow-list--spacious .card__image {
        width: 100%;
        height: 180px;
        min-height: 180px;
    }

    .bungalow-list--spacious .card__body {
        padding: 16px 18px;
    }

    .bungalow-list--spacious .card__footer {
        flex-wrap: wrap;
    }
}

/* Homepage Popular Listings — Shopify-style product cards */
.popular-section {
    padding: 72px 0 80px;
}

.popular-section__header,
.nearby-section__header,
.all-listings-section__header,
.all-bungalows-section__header {
    margin-bottom: 32px;
}

.popular-section__header h2,
.nearby-section__header h2,
.all-listings-section__header h2,
.all-bungalows-section__header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #121212;
    margin-bottom: 4px;
}

.popular-section__header p,
.nearby-section__header p,
.all-listings-section__header p,
.all-bungalows-section__header p {
    font-size: 0.9rem;
    color: #737373;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Eşit kart yüksekliği — kısa içerikte altta beyaz boşluk kalmasın */
.product-grid:not(.product-grid--masonry) .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-grid:not(.product-grid--masonry) .product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.product-grid:not(.product-grid--masonry) .product-card__info {
    flex: 1;
}

.product-grid:not(.product-grid--masonry) .product-card__footer {
    margin-top: auto;
}

/* Pinterest tarzı — kartlar doğal görsel yüksekliğinde */
.product-grid--masonry {
    display: block;
    column-count: 4;
    column-gap: 20px;
}

.product-grid--masonry .product-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    width: 100%;
    display: inline-block;
    vertical-align: top;
}

.product-grid--masonry .product-grid__empty {
    display: block;
    width: 100%;
}

.product-grid--masonry .product-card__image {
    aspect-ratio: unset;
    height: auto;
}

.product-grid--masonry .product-card__image img {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
}

.product-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    color: #8a8a8a;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.product-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.listing-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f6f6f6;
    flex-shrink: 0;
}

.listing-image-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Pinterest-style masonry (doğal görsel oranları) */
.masonry-grid {
    column-gap: 20px;
    column-count: 4;
}

.masonry-grid__item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 20px;
    width: 100%;
    display: inline-block;
    vertical-align: top;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    background: #f6f6f6;
    transition: transform 0.3s ease, box-shadow 0.25s ease;
}

.masonry-grid__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.masonry-grid__item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 14px;
    }

    .masonry-grid__item {
        margin-bottom: 14px;
    }
}

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

.details-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.details-thumb-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    background: #f6f6f6;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.details-thumb-item:hover {
    transform: translateY(-2px);
    border-color: #d4d4d4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
    .details-thumb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .details-thumb-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #f6f6f6;
    flex-shrink: 0;
}

.product-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card__image img {
    opacity: 0.92;
}

.product-card__info {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.product-card__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #121212;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f5f5f5;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #121212;
}

.product-card__rating svg {
    color: #121212;
    flex-shrink: 0;
}

.product-card__location {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    color: #6b6b6b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.product-card__price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}

.product-card__price-value {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #121212;
}

.product-card__price-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: #8a8a8a;
}

.product-card__review-count {
    font-size: 0.75rem;
    font-weight: 400;
    color: #8a8a8a;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Popüler bungalovlar — sarı gradient + shine */
.product-card--popular {
    position: relative;
    overflow: hidden;
    border-color: #e3cc86;
    box-shadow: 0 2px 14px rgba(201, 162, 39, 0.1);
    background: #ffdf96;
}

.product-card--popular:hover {
    border-color: #d4b96a;
    box-shadow: 0 4px 18px rgba(201, 162, 39, 0.16);
}

.product-card--popular .product-card__link {
    position: relative;
    z-index: 2;
}

.product-card--popular .product-card__info {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        128deg,
        #fff8e8 0%,
        #fff0cc 42%,
        #ffe8b0 78%,
        #ffdf96 100%
    );
    border-top: 1px solid #e8c96a;
}

.product-card--popular .product-card__info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        155deg,
        rgba(255, 252, 238, 0.45) 0%,
        rgba(255, 246, 215, 0.22) 45%,
        rgba(255, 238, 190, 0.14) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.product-card--popular .product-card__info::after {
    content: '';
    position: absolute;
    top: -30%;
    left: 18%;
    width: 38%;
    height: 160%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 248, 215, 0.22) 42%,
        rgba(255, 244, 195, 0.38) 50%,
        rgba(255, 248, 215, 0.22) 58%,
        transparent 100%
    );
    transform: rotate(22deg);
    pointer-events: none;
    z-index: 1;
    animation: popular-card-shine 4.5s ease-in-out infinite;
}

@keyframes popular-card-shine {
    0%, 100% {
        opacity: 0.4;
        left: 14%;
    }
    50% {
        opacity: 0.65;
        left: 26%;
    }
}

.product-card--popular .product-card__head,
.product-card--popular .product-card__location,
.product-card--popular .product-card__footer {
    position: relative;
    z-index: 2;
}

.product-card--popular .product-card__rating {
    background: #ffeaa0;
    color: #5c4a00;
    font-weight: 500;
}

.product-card--popular .product-card__rating svg {
    color: #5c4a00;
}

.product-card--popular .product-card__footer {
    border-top-color: #edd9a8;
}

@media (max-width: 1024px) {
    .product-grid:not(.product-grid--masonry) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .product-grid--masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .popular-section {
        padding: 48px 0 56px;
    }

    .popular-section__header,
    .nearby-section__header,
    .all-listings-section__header,
    .all-bungalows-section__header {
        margin-bottom: 24px;
    }

    .popular-section__header h2,
    .nearby-section__header h2,
    .all-listings-section__header h2,
    .all-bungalows-section__header h2 {
        font-size: 1.25rem;
    }

    .product-grid:not(.product-grid--masonry) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-grid--masonry {
        column-count: 2;
        column-gap: 12px;
    }

    .product-grid--masonry .product-card {
        margin-bottom: 12px;
    }

    .product-card__info {
        padding: 12px 14px 14px;
    }

    .product-card__title {
        font-size: 0.875rem;
    }

    .product-card__location {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .product-card__footer {
        padding-top: 12px;
    }

    .product-card__price-value {
        font-size: 0.9375rem;
    }

    .product-card__price-unit,
    .product-card__review-count,
    .product-card__rating {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .product-grid:not(.product-grid--masonry) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-grid--masonry {
        column-count: 2;
        column-gap: 12px;
    }

    .product-grid--masonry .product-card {
        margin-bottom: 12px;
    }
}

/* Nearby Bungalows */
.nearby-section {
    padding: 0 0 80px;
}

.nearby-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 36px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
}

.nearby-panel[hidden] {
    display: none !important;
}

.nearby-panel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #121212;
    border: 1px solid #ececec;
    margin-bottom: 4px;
}

.nearby-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #121212;
}

.nearby-panel__text {
    margin: 0;
    max-width: 420px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #737373;
}

.nearby-panel__btn {
    margin-top: 6px;
    padding: 11px 20px;
    border: none;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nearby-panel__btn:hover {
    background: #2a2a2a;
}

.nearby-panel__btn--ghost {
    background: #fff;
    color: #121212;
    border: 1px solid #d4d4d4;
}

.nearby-panel__btn--ghost:hover {
    background: #f5f5f5;
}

.nearby-panel--loading {
    min-height: 160px;
}

.nearby-panel__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #e5e5e5;
    border-top-color: #121212;
    border-radius: 50%;
    animation: nearby-spin 0.8s linear infinite;
}

@keyframes nearby-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-grid--nearby.product-grid--masonry {
    column-count: 4;
}

@media (max-width: 1024px) {
    .product-grid--nearby:not(.product-grid--masonry) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nearby-section {
        padding-bottom: 56px;
    }

    .nearby-panel {
        padding: 28px 18px;
    }
}

@media (max-width: 480px) {
    .product-grid--nearby:not(.product-grid--masonry) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* All Listings Showcase */
.all-listings-section {
    padding: 0 0 80px;
}

.section-view-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    background: #121212;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.2s ease;
}

.section-view-all:hover {
    background: #2a2a2a;
    color: #fff;
}

@media (max-width: 1024px) {
    .product-grid--all-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .all-listings-section {
        padding-bottom: 56px;
    }

    .section-view-all-wrap {
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    .product-grid--all-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* All Bungalows Locations Section */
.all-bungalows-section {
    padding: 16px 0 64px;
}

.locations-hierarchy {
    margin-top: 12px;
    column-count: 3;
    column-gap: 34px;
}

.locations-panel {
    position: relative;
}

.locations-panel.is-collapsed {
    max-height: 360px;
    overflow: hidden;
}

.locations-panel__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 96px;
    background: linear-gradient(
        to bottom,
        rgba(251, 248, 243, 0) 0%,
        rgba(251, 248, 243, 0.82) 48%,
        #fbf8f3 100%
    );
    pointer-events: none;
}

.locations-panel__fade[hidden] {
    display: none !important;
}

.locations-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0;
    padding: 16px 20px 4px;
    border: none;
    border-top: 1px solid #ece7df;
    background: #fbf8f3;
    box-shadow: none;
    color: #2d4030;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.locations-load-more[hidden] {
    display: none !important;
}

.locations-load-more:hover {
    color: var(--primary-dark);
}

.locations-load-more::after {
    content: '↓';
    margin-left: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.city-text-group {
    break-inside: avoid;
    margin: 0 0 18px;
}

.city-text-title {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.1px;
}

.district-text-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.district-text-item {
    margin: 0;
    padding: 0;
}

.district-text-link {
    border: none;
    background: transparent;
    padding: 6px 0;
    margin: 0;
    text-align: left;
    color: #5f5f5f;
    font-size: 0.93rem;
    line-height: 1.5;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
}

.district-text-link__label {
    flex: 0 1 auto;
    white-space: nowrap;
}

.district-text-link__label::before {
    content: '- ';
    color: #8a8a8a;
}

.district-text-link__line {
    flex: 1 1 auto;
    height: 1px;
    background: #e3ddd4;
    min-width: 16px;
    transition: background 0.2s ease;
}

.district-text-link:hover {
    color: var(--primary-dark);
}

.district-text-link:hover .district-text-link__label {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.district-text-link:hover .district-text-link__line {
    background: #cfc7bb;
}

.district-empty,
.locations-empty {
    color: #8c8c8c;
    font-size: 0.9rem;
    padding: 4px 0;
}

@media (max-width: 1200px) {
    .locations-hierarchy {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .locations-hierarchy {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .all-bungalows-section {
        padding: 10px 0 56px;
    }

    .locations-hierarchy {
        column-count: 1;
        column-gap: 0;
    }

    .city-text-group {
        margin-bottom: 14px;
    }

    .district-text-link {
        font-size: 0.9rem;
    }

    .locations-panel.is-collapsed {
        max-height: 320px;
    }

    .locations-load-more {
        padding-top: 16px;
    }
}

/* Header compact UI — no bold on small text */
.header-wrapper .btn-soft,
.header-wrapper .actions a,
.header-wrapper .search-nav-row input,
.header-wrapper .search-nav-row button,
.header-wrapper .mobile-trigger-input-wrap input,
.header-wrapper .mobile-filter-submit,
.header-wrapper .map-search-bar .choices,
.header-wrapper .map-search-bar .choices__inner,
.header-wrapper .map-search-bar .choices__input,
.header-wrapper .map-search-bar .choices__list--single,
.header-wrapper .map-search-bar .choices__list--single .choices__item,
.header-wrapper .map-search-bar .choices__placeholder,
.header-wrapper .map-search-bar .choices__list--dropdown .choices__item,
.header-wrapper .map-search-bar .choices__list--dropdown .choices__item--selectable,
.header-wrapper .mobile-filter-field .choices,
.header-wrapper .mobile-filter-field .choices__inner,
.header-wrapper .mobile-filter-field .choices__input,
.header-wrapper .mobile-filter-field .choices__list--single,
.header-wrapper .mobile-filter-field .choices__list--single .choices__item,
.header-wrapper .mobile-filter-field .choices__placeholder,
.header-wrapper .mobile-filter-field .choices__list--dropdown .choices__item,
.header-wrapper .mobile-filter-field .choices__list--dropdown .choices__item--selectable,
.header-wrapper #headerUnreadBadge {
    font-weight: 300 !important;
}

/* ── Site Footer ── */
.site-footer {
    margin-top: 48px;
    background: #454040;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(0, 2fr);
    gap: 48px;
    padding: 52px 0 40px;
}

.site-footer__brand {
    max-width: 320px;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #f5d69f;
}

.site-footer__logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.site-footer__wordmark {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.site-footer__wordmark-strong {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f5d69f;
}

.site-footer__wordmark-light {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(245, 214, 159, 0.82);
}

.site-footer__tagline {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 300;
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.site-footer__heading {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    font-weight: 300;
    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: #f5d69f;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__copy,
.site-footer__note {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 300;
}

.site-footer__note {
    text-align: right;
}

@media (max-width: 900px) {
    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 28px;
    }

    .site-footer__brand {
        max-width: none;
    }

    .site-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
    }

    .site-footer__col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 32px;
    }

    .site-footer__main {
        padding: 32px 0 24px;
        gap: 28px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0 24px;
    }

    .site-footer__note {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .site-footer__nav {
        grid-template-columns: 1fr;
    }

    .site-footer__col:last-child {
        grid-column: auto;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid #dde5df;
    background: #fff;
    color: var(--primary-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination__link--nav {
    min-width: 40px;
    font-size: 1.1rem;
    line-height: 1;
}

.pagination__link:hover:not(.is-active):not(.is-disabled) {
    background: #f4f8f5;
    border-color: #c5d4cb;
}

.pagination__link.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination__link.is-disabled {
    opacity: 0.4;
    cursor: default;
}

.pagination__ellipsis {
    min-width: 24px;
    text-align: center;
    color: #8a948c;
    font-weight: 700;
}

/* Legal pages */
.legal-page {
    padding: 40px 0 72px;
    background: var(--bg-light);
}

.legal-page__container {
    max-width: 820px;
}

.legal-page__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.legal-page__eyebrow {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.legal-page__title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    color: var(--primary-dark);
}

.legal-page__updated {
    margin: 0;
    font-size: 0.875rem;
    color: #737373;
}

.legal-page__content section {
    margin-bottom: 28px;
}

.legal-page__content h2 {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.legal-page__content h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.legal-page__content p,
.legal-page__content li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #4a4a4a;
}

.legal-page__content ul {
    margin: 0 0 12px;
    padding-left: 1.25rem;
}

.legal-page__content li {
    margin-bottom: 6px;
}

.legal-page__content a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-lead {
    margin: 0 0 28px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: #3d3d3d;
}

.legal-page__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

.legal-page__nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
}

.legal-page__nav a:hover {
    color: var(--secondary-color);
}

.legal-contact {
    margin-top: 36px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
}

.legal-contact h2 {
    margin: 0 0 16px;
    font-size: 1.125rem;
    color: var(--primary-dark);
}

.legal-contact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.legal-contact__card {
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
}

.legal-contact__card p {
    margin: 0 0 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #555;
}

.legal-contact__card p:last-child {
    margin-bottom: 0;
}

.legal-contact__note {
    margin: 16px 0 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #777;
}

.protected-contact__link {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.protected-contact__link:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 28px 0 56px;
    }

    .legal-contact__grid {
        grid-template-columns: 1fr;
    }
}

/* 404 — SEO-friendly error page */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.not-found-page {
    background: var(--bg-light);
}

.not-found {
    padding: 24px 0 72px;
}

.not-found__container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.not-found__hero {
    text-align: center;
    padding: 32px 28px 36px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.not-found__code {
    margin: 0 0 8px;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary-color);
}

.not-found__title {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
    color: var(--primary-dark);
}

.not-found__text {
    margin: 0 auto 16px;
    max-width: 560px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #5f6c66;
}

.not-found__path {
    margin: 0 auto 20px;
    font-size: 0.8125rem;
    color: #888;
}

.not-found__path code {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555;
    font-size: 0.8125rem;
    word-break: break-all;
}

.not-found__path span,
.not-found__path code {
    vertical-align: middle;
}

.not-found__search {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 18px;
}

.not-found__search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--primary-dark);
    background: #fff;
}

.not-found__search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 64, 48, 0.12);
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.not-found__actions .panel-btn {
    flex: 1 1 160px;
    min-width: 0;
    justify-content: center;
}

.not-found__section {
    margin-bottom: 24px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.not-found__section-title {
    margin: 0 0 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.not-found__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.not-found__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fafafa;
    border: 1px solid #e4e4e4;
    color: var(--primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.not-found__chip span {
    font-weight: 500;
    color: #888;
}

.not-found__chip:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.not-found__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.not-found__grid .product-card__info {
    padding: 12px 14px 14px;
}

.not-found__grid .product-card__title {
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .not-found__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .not-found {
        padding: 12px 0 48px;
    }

    .not-found__container {
        width: 96%;
    }

    .not-found__hero {
        padding: 22px 16px 24px;
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .not-found__code {
        font-size: 2.75rem;
    }

    .not-found__title {
        font-size: 1.25rem;
    }

    .not-found__text {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .not-found__path {
        font-size: 0.75rem;
        text-align: left;
    }

    .not-found__path span {
        display: block;
        margin-bottom: 4px;
    }

    .not-found__path code {
        display: block;
        margin-left: 0;
        width: 100%;
        font-size: 0.75rem;
    }

    .not-found__search {
        flex-direction: column;
        max-width: none;
    }

    .not-found__search input {
        height: 44px;
        font-size: 16px;
    }

    .not-found__search .panel-btn {
        width: 100%;
    }

    .not-found__actions {
        flex-direction: column;
        max-width: none;
    }

    .not-found__actions .panel-btn {
        width: 100%;
        flex: none;
    }

    .not-found__section {
        padding: 16px 14px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .not-found__section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .not-found__chips {
        gap: 8px;
    }

    .not-found__chip {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 0.75rem;
        border-radius: 10px;
        text-align: center;
    }

    .not-found__chip span {
        display: block;
        font-size: 0.6875rem;
    }

    .not-found__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .not-found__grid .product-card__info {
        padding: 10px 10px 11px;
    }

    .not-found__grid .product-card__title {
        font-size: 0.8125rem;
        line-height: 1.25;
    }

    .not-found__grid .product-card__location {
        font-size: 0.6875rem;
        margin-bottom: 8px;
    }

    .not-found__grid .product-card__footer {
        padding-top: 8px;
    }
}

@media (max-width: 380px) {
    .not-found__chip {
        flex: 1 1 100%;
    }
}
