@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #1B262C;
    --muted: #526976;
    --line: #dbe8ef;
    --paper: #FFFFFF;
    --soft: #F8FAFC;
    --brand: #0F4C75;
    --brand-soft: #BBE1FA;
    --brand-dark: #1B262C;
    --accent: #BBE1FA;
    --shadow: 0 18px 48px rgba(15, 76, 117, .14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font: inherit;
}

button {
    font-family: inherit;
}

.navbar {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(187, 225, 250, .65);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 16px 7%;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
}

.nav_header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.logo {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-size: 1.35rem;
    font-weight: 800;
    gap: 10px;
}

.logo span {
    color: var(--brand);
}

.image_logo img {
    display: block;
    height: 42px;
    object-fit: contain;
    width: auto;
}

.image_logo span {
    color: var(--brand);
    font-size: 1.05rem;
    line-height: 1.15;
}

.admin_logo img {
    height: 38px;
}

.admin_logo span {
    font-size: .98rem;
}

.admin_login_card .image_logo img {
    height: 56px;
}

.nav_links {
    align-items: center;
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav_links a {
    color: var(--muted);
    font-size: .95rem;
    font-weight: 600;
}

.nav_links a:hover {
    color: var(--brand);
}

.nav_links a.active {
    color: var(--brand);
}

.nav_cta {
    background: var(--brand);
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    padding: 11px 18px;
}

.nav_menu_button {
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    display: none;
    font-size: 1.6rem;
}

.hero {
    align-items: center;
    background: url("/static/img/dummy_1.jpg") center/cover no-repeat;
    display: flex;
    min-height: calc(100vh - 73px);
    padding: 56px 7%;
    position: relative;
}

.hero_overlay {
    background: linear-gradient(90deg, rgba(27, 38, 44, .88), rgba(15, 76, 117, .68) 54%, rgba(15, 76, 117, .2));
    inset: 0;
    position: absolute;
}

.hero_content {
    color: #fff;
    max-width: 1080px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.eyebrow {
    color: var(--brand-soft);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--brand);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 5.2rem);
    line-height: 1.02;
    max-width: 870px;
}

.hero_text {
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 22px 0 30px;
    max-width: 680px;
}

.search_panel {
    background: var(--paper);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--ink);
    max-width: 980px;
    overflow: hidden;
}

.search_tabs {
    border-bottom: 1px solid var(--line);
    display: flex;
    padding: 10px 12px 0;
}

.search_tabs button {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
    padding: 14px 20px;
}

.search_tabs button.active {
    border-color: var(--brand);
    color: var(--brand);
}

.search_fields {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto;
    padding: 18px;
}

.search_fields label {
    display: grid;
    gap: 8px;
}

.search_fields span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}

.search_fields select {
    appearance: none;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    min-height: 48px;
    padding: 0 14px;
}

.search_button,
.contact_button,
.card_link {
    align-items: center;
    background: var(--brand);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
}

.reset_button {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
}

.reset_button:hover {
    background: var(--brand-soft);
    border-color: var(--brand-soft);
}

.search_button:hover,
.contact_button:hover,
.card_link:hover {
    background: var(--brand-dark);
}

.quick_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick_filters button {
    align-items: center;
    background: rgba(187, 225, 250, .2);
    border: 1px solid rgba(187, 225, 250, .36);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    padding: 10px 14px;
}

.quick_filters button.active,
.quick_filters button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.feature_strip {
    background: var(--paper);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 7%;
}

.feature_strip article {
    padding: 34px 28px;
}

.feature_strip i,
.service_list i {
    color: var(--brand);
    font-size: 1.7rem;
}

.feature_strip h3 {
    font-size: 1rem;
    margin: 10px 0 8px;
}

.feature_strip p,
.contact_section p,
.service_list span {
    color: var(--muted);
    line-height: 1.7;
}

.section {
    padding: 86px 7%;
}

.section_heading {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section_heading p {
    color: var(--brand);
    font-size: .85rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section_heading h2,
.services_content h2,
.contact_section h2 {
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 1.15;
}

.section_heading a {
    align-items: center;
    color: var(--brand);
    display: inline-flex;
    font-weight: 800;
    gap: 6px;
    white-space: nowrap;
}

.section_link_button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 6px;
    padding: 0;
    white-space: nowrap;
}

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

.property_card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.property_card[hidden] {
    display: none;
}

.property_card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.property_image {
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
    position: relative;
}

.property_image img {
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    width: 100%;
}

.property_card:hover .property_image img {
    transform: scale(1.04);
}

.property_badge {
    background: var(--paper);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 800;
    left: 14px;
    padding: 7px 11px;
    position: absolute;
    top: 14px;
}

.property_content {
    padding: 20px;
}

.property_top {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.property_top span {
    background: var(--brand-soft);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: .75rem;
    font-weight: 800;
    padding: 6px 10px;
}

.property_top strong {
    color: var(--brand);
    font-size: .95rem;
}

.property_content h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    min-height: 44px;
}

.location {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 6px;
    margin: 12px 0 18px;
}

.property_info {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 16px;
}

.property_info span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: .86rem;
    gap: 6px;
}

.card_link {
    margin-top: 18px;
    width: 100%;
}

.card_actions {
    display: grid;
    gap: 10px;
    grid-template-columns: .85fr 1.15fr;
    margin-top: 18px;
}

.card_actions .card_link {
    margin-top: 0;
}

.details_link {
    align-items: center;
    border: 1px solid var(--brand);
    border-radius: 8px;
    color: var(--brand);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
}

.details_link:hover {
    background: var(--brand-soft);
}

.full_width {
    margin-top: 18px;
    width: 100%;
}

.empty_state {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 24px;
    padding: 34px;
    text-align: center;
}

.empty_state i {
    color: var(--brand);
    font-size: 2rem;
}

.empty_state h3 {
    font-size: 1.2rem;
    margin: 12px 0 8px;
}

.empty_state p {
    color: var(--muted);
    margin-bottom: 18px;
}

.empty_state button {
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 44px;
    padding: 0 18px;
}

.empty_state button:hover {
    background: var(--brand-dark);
}

.stats_section {
    background: var(--brand);
    color: #fff;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, 1fr);
    padding: 46px 7%;
}

.stats_section div {
    display: grid;
    gap: 8px;
}

.stats_section strong {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.stats_section span {
    color: rgba(255, 255, 255, .72);
}

.explore_grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
}

.explore_grid a {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    min-height: 112px;
    padding: 22px;
}

.explore_grid a:hover {
    border-color: rgba(15, 76, 117, .35);
    box-shadow: 0 14px 32px rgba(15, 76, 117, .1);
}

.explore_grid span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.explore_grid strong {
    font-size: 1.2rem;
}

.services_section {
    align-items: center;
    background: var(--paper);
    display: grid;
    gap: 52px;
    grid-template-columns: .9fr 1.1fr;
}

.services_media {
    aspect-ratio: 1 / .9;
    border-radius: 8px;
    overflow: hidden;
}

.services_media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.service_list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.service_list div {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: 34px 1fr;
}

.contact_section {
    align-items: center;
    background: var(--brand-soft);
    display: flex;
    gap: 30px;
    justify-content: space-between;
    padding: 70px 7%;
}

.contact_section div {
    max-width: 720px;
}

.contact_section p:last-child {
    margin-top: 14px;
}

.contact_button {
    flex: 0 0 auto;
}

.whatsapp_modal[hidden] {
    display: none;
}

.whatsapp_modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 100;
}

.whatsapp_modal_backdrop {
    background: rgba(27, 38, 44, .58);
    inset: 0;
    position: absolute;
}

.whatsapp_modal_card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    max-width: 420px;
    padding: 26px;
    position: relative;
    width: min(100%, 420px);
    z-index: 1;
}

.whatsapp_modal_card h2 {
    font-size: 1.45rem;
}

.modal_close {
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.1rem;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 38px;
}

.whatsapp_contact_list {
    display: grid;
    gap: 10px;
}

.whatsapp_contact_option {
    width: 100%;
}

.detail_hero {
    background: var(--paper);
    padding: 38px 7% 28px;
}

.detail_breadcrumb {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .9rem;
    gap: 8px;
    margin-bottom: 28px;
}

.detail_breadcrumb a:hover {
    color: var(--brand);
}

.detail_title_row {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

.detail_title_row h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.08;
}

.detail_location {
    margin-bottom: 0;
}

.detail_price {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-width: 240px;
    padding: 18px;
}

.detail_price span,
.booking_panel p,
.panel_notes,
.detail_block p {
    color: var(--muted);
    line-height: 1.7;
}

.detail_price strong {
    color: var(--brand);
    font-size: 1.3rem;
}

.detail_gallery {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 180px;
    padding: 0 7% 44px;
}

.gallery_main {
    background: var(--brand-soft);
    border-radius: 8px;
    overflow: hidden;
}

.gallery_main {
    aspect-ratio: 1.85 / 1;
}

.gallery_thumbnails {
    display: grid;
    gap: 12px;
}

.gallery_thumb {
    aspect-ratio: 1.35 / 1;
    background: var(--brand-soft);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.gallery_thumb.active {
    border-color: var(--brand);
}

.detail_gallery img,
.gallery_thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.detail_layout {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 360px;
    padding: 0 7% 86px;
}

.detail_main,
.booking_panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail_main {
    padding: 28px;
}

.detail_specs {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 32px;
}

.detail_specs div {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 16px;
}

.detail_specs i {
    color: var(--brand);
    font-size: 1.35rem;
}

.detail_specs strong {
    font-size: 1.15rem;
}

.detail_specs span {
    color: var(--muted);
    font-size: .84rem;
}

.detail_block {
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
}

.detail_block + .detail_block {
    margin-top: 28px;
}

.detail_block h2,
.booking_panel h2 {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.facility_grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

.facility_grid span,
.highlight_list div,
.panel_notes div {
    align-items: center;
    display: flex;
    gap: 10px;
}

.facility_grid i,
.highlight_list i,
.panel_notes i {
    color: var(--brand);
    font-size: 1.15rem;
}

.highlight_list {
    display: grid;
    gap: 14px;
}

.booking_panel {
    padding: 24px;
    position: sticky;
    top: 96px;
}

.panel_badge {
    display: inline-flex;
    left: auto;
    margin-bottom: 16px;
    position: static;
    top: auto;
}

.booking_panel .contact_button {
    margin: 20px 0;
    width: 100%;
}

.panel_notes {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding-top: 18px;
}

.availability_fields {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.availability_fields label {
    display: grid;
    gap: 8px;
}

.availability_fields span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.availability_fields input,
.availability_fields select {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    min-height: 46px;
    padding: 0 12px;
    width: 100%;
}

.similar_section {
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.admin_body {
    background: var(--soft);
}

.admin_topbar {
    align-items: center;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 16px 7%;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin_topbar nav {
    display: flex;
    gap: 18px;
}

.admin_topbar nav a {
    color: var(--muted);
    font-weight: 800;
}

.admin_topbar nav a:hover {
    color: var(--brand);
}

.admin_shell {
    padding: 42px 7% 80px;
}

.admin_header {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin_header_actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.admin_header h1,
.admin_login_card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.admin_header p,
.admin_login_card p {
    color: var(--muted);
    line-height: 1.7;
}

.admin_primary_button {
    align-items: center;
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
}

.admin_primary_button:hover {
    background: var(--brand-dark);
}

.admin_table_card,
.admin_form,
.admin_login_card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 76, 117, .08);
}

.admin_table {
    overflow-x: auto;
}

.admin_search {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 18px;
}

.admin_table_row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 16px;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr auto;
    min-width: 980px;
    padding: 16px;
}

.admin_table_row:last-child {
    border-bottom: 0;
}

.admin_table_head {
    background: var(--soft);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin_property_cell {
    align-items: center;
    display: flex;
    gap: 12px;
}

.admin_property_cell img {
    aspect-ratio: 1 / .72;
    border-radius: 8px;
    object-fit: cover;
    width: 86px;
}

.admin_property_cell small {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.admin_actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.admin_actions a,
.admin_actions button {
    background: transparent;
    border: 0;
    color: var(--brand);
    cursor: pointer;
    font-weight: 800;
}

.admin_actions button {
    color: #b42318;
}

.admin_pagination {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 18px;
}

.admin_pagination span,
.status_text {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.admin_login_page {
    align-items: center;
    display: flex;
    min-height: 100vh;
    padding: 24px;
}

.admin_login_card {
    display: grid;
    gap: 24px;
    margin: 0 auto;
    max-width: 440px;
    padding: 32px;
    width: 100%;
}

.admin_login_card label,
.admin_form label,
.admin_search label {
    display: grid;
    gap: 8px;
}

.admin_login_card label span,
.admin_form label span,
.admin_search label span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.admin_login_card input,
.admin_form input,
.admin_form select,
.admin_form textarea,
.admin_search input {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 46px;
    padding: 11px 12px;
    width: 100%;
}

.admin_form textarea {
    line-height: 1.6;
    resize: vertical;
}

.flash_message {
    border-radius: 8px;
    font-weight: 800;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.flash_message.success {
    background: #e7f7ee;
    color: #166534;
}

.flash_message.error {
    background: #fee4e2;
    color: #b42318;
}

.admin_form {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.admin_form_section {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
    padding: 24px;
}

.admin_form_section h2 {
    font-size: 1.2rem;
}

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

.admin_form_grid.compact,
.admin_form_grid.textareas {
    grid-template-columns: repeat(3, 1fr);
}

.admin_form_actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px;
}

.admin_form code {
    background: var(--brand-soft);
    border-radius: 6px;
    color: var(--brand-dark);
    padding: 2px 6px;
}

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

    .search_fields,
    .stats_section,
    .detail_specs,
    .detail_gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery_thumbnails {
        grid-template-columns: 1fr;
    }

    .search_button {
        grid-column: 1 / -1;
    }

    .reset_button {
        grid-column: 1 / -1;
    }

    .detail_layout {
        grid-template-columns: 1fr;
    }

    .booking_panel {
        position: static;
    }

    .admin_header {
        align-items: start;
        flex-direction: column;
    }

    .admin_header_actions,
    .admin_search,
    .admin_pagination {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        width: 100%;
    }

    .admin_form_grid,
    .admin_form_grid.compact,
    .admin_form_grid.textareas {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .navbar {
        display: block;
        padding: 16px 5%;
    }

    .nav_menu_button {
        display: inline-flex;
    }

    .nav_links {
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        display: grid;
        gap: 18px;
        opacity: 0;
        padding: 20px;
        pointer-events: none;
        position: absolute;
        right: 5%;
        top: 68px;
        transform: translateY(-8px);
        transition: .2s ease;
        width: min(280px, 90vw);
    }

    .nav_links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        min-height: auto;
        padding: 52px 5%;
    }

    .hero_overlay {
        background: rgba(27, 38, 44, .78);
    }

    .search_fields,
    .feature_strip,
    .property_grid,
    .stats_section,
    .explore_grid,
    .services_section,
    .detail_gallery,
    .detail_specs,
    .facility_grid {
        grid-template-columns: 1fr;
    }

    .search_tabs {
        overflow-x: auto;
    }

    .feature_strip,
    .section,
    .stats_section,
    .contact_section,
    .detail_hero,
    .detail_gallery,
    .detail_layout {
        padding-left: 5%;
        padding-right: 5%;
    }

    .section_heading,
    .contact_section,
    .detail_title_row {
        align-items: start;
        flex-direction: column;
    }

    .property_content h3 {
        min-height: 0;
    }

    .gallery_main,
    .gallery_thumb {
        aspect-ratio: 1.35 / 1;
    }

    .gallery_thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin_topbar {
        align-items: start;
        flex-direction: column;
        gap: 12px;
        padding-left: 5%;
        padding-right: 5%;
    }

    .admin_shell {
        padding-left: 5%;
        padding-right: 5%;
    }

    .admin_form_actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .search_tabs button {
        padding: 12px 14px;
    }

    .property_info {
        grid-template-columns: 1fr;
    }

    .card_actions {
        grid-template-columns: 1fr;
    }
}
