/* Brand tokens */
:root {
    --brand-primary: #0ea5e9;
    --brand-primary-dark: #0284c7;
    --brand-accent: #22c1c3;
    --brand-bg-soft: #f5f7fb;
    --brand-text: #0f172a;
}

/* Hamburger (sidebarToggle) position */
#sidebarToggle {
    position: absolute;
    right: 16px;
    top: 12px;
    z-index: 1100;
    border: none;
    background: transparent;
}

/* Custom font: GodwitText (multiple weights) */
@font-face {
    font-family: 'GodwitText';
    src: url('../fonts/GodwitText-Regular.woff2') format('woff2'),
         url('../fonts/GodwitText-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GodwitText';
    src: url('../fonts/GodwitText-Medium.woff2') format('woff2'),
         url('../fonts/GodwitText-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GodwitText';
    src: url('../fonts/GodwitText-SemiBold.woff2') format('woff2'),
         url('../fonts/GodwitText-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GodwitText';
    src: url('../fonts/GodwitText-Bold.woff2') format('woff2'),
         url('../fonts/GodwitText-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GodwitText';
    src: url('../fonts/GodwitText-ExtraBold.woff2') format('woff2'),
         url('../fonts/GodwitText-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@media (min-width: 992px) {
    #sidebarToggle {
        display: none;
    }
}

/* Sidebar Menu Styles */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}

.sidebar-menu.active {
    transform: translateX(0);
}

.sidebar-header {
    border-bottom: 1px solid #eee;
}

.sidebar-menu .nav-link.active {
    color: #0064d2;
    font-weight: bold;
}

.sidebar-menu .btn-close {
    font-size: 1.2rem;
}

/* Keep sidebar available across breakpoints; rely on transform for hide/show */

body {
    font-family: 'GodwitText', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--brand-bg-soft);
    color: var(--brand-text);
    padding-bottom: 72px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'GodwitText', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.navbar-brand {
    font-family: 'GodwitText', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.4px;
}

.brand-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.brand-identity {
    color: var(--brand-text);
}

.brand-tagline {
    font-size: 0.7rem;
    color: rgba(15, 23, 42, 0.7);
    letter-spacing: 0.02em;
}

/* Media defaults for consistent sizing */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.media-cover {
    object-fit: cover;
    width: 100%;
}

.carousel-inner img {
    height: 220px;
    object-fit: cover;
}

.card-villa img {
    height: 150px;
    object-fit: cover;
}

.card-villa-horizontal img {
    object-fit: cover;
    height: 140px;
    min-height: 120px;
}

.villa-carousel-img {
    height: 240px;
    object-fit: cover;
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-banner {
    background: linear-gradient(135deg, #0064d2, #00a2ff);
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url('https://images.pexels.com/photos/258154/pexels-photo-258154.jpeg?auto=compress&cs=tinysrgb&w=800');
    background-size: cover;
    background-position: center;
}

/* Footer Styling */
.footer-main {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    margin-top: 60px;
}

.footer-main h5 {
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-main h6 {
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.footer-main a {
    transition: color 0.2s;
}

.footer-main a:hover {
    color: #00a2ff !important;
}

.footer-main .text-muted {
    color: #aaa !important;
}

.footer-main hr {
    margin: 30px 0 20px;
}

.social-links .btn-outline-light {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.social-links .btn-outline-light:hover {
    background-color: #00a2ff;
    border-color: #00a2ff;
    color: #fff;
}

/* Admin responsiveness helpers */
.admin-list-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.admin-list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 576px) {
    .admin-list-item {
        flex-direction: column;
    }
    .admin-list-actions {
        justify-content: flex-start;
    }
}

/* --- App shell: narrow, app-like viewport --- */
.app-shell {
    max-width: 540px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .app-shell {
        max-width: 100%;
    }
}

/* --- App-like buttons overriding Bootstrap defaults --- */
.btn {
    font-weight: 600;
    border-radius: 999px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border: none;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--brand-primary-dark), #1fb0c0);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.45);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.35);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

/* Keep outline buttons subtle but rounded */
.btn-outline-secondary,
.btn-outline-primary {
    border-radius: 999px;
}

/* Mobile bottom nav (duplicate kept for legacy) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 62px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border-radius: 18px;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    padding-top: 4px;
    color: #64748b;
    text-decoration: none;
}

.mobile-bottom-nav .nav-item.active {
    color: #0ea5e9;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item .bi {
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}

/* Amenity + CTA sections */
.amenities-section {
    background: #f7f9fc;
}

.amenity-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h3,
.cta-section p,
.cta-section a {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Hero video */
.hero-video {
    min-height: 360px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 100%);
}

.hero-video-content {
    position: relative;
    z-index: 2;
    padding: 48px 16px 36px;
}

.hero-video-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
}

.hero-video-content p {
    font-size: 1rem;
}

.hero-search .form-control,
.hero-search .form-select {
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.hero-search .btn {
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.brand-strip .brand-logo {
    height: 46px;
    object-fit: contain;
}

/* Modern villas page */
.modern-hero {
    background: transparent;
    color: #fff;
    border-radius: 20px;
    min-height: 260px;
}

.modern-hero .breadcrumb a {
    color: #e0f2fe;
    text-decoration: none;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}

.modern-hero .carousel,
.modern-hero .carousel-inner,
.modern-hero .carousel-item {
    height: 100%;
    min-height: 260px;
}

.modern-hero .filter-modern .form-control,
.modern-hero .filter-modern .form-select {
    border-radius: 10px;
}

.villa-card-modern img {
    height: 200px;
    object-fit: cover;
}

.villa-card-modern .villa-card-body {
    padding: 14px;
}

.sort-select {
    max-width: 190px;
}

/* Destination guide */
.dest-guide-section .dest-card {
    border: none;
    min-height: 220px;
}

.dest-thumb-oval {
    width: 78px;
    height: 78px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.dest-thumb-oval img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    margin-bottom: 10px;
    padding-bottom: 4px;
}

.destination-bubble {
    flex: 0 0 150px;
    min-width: 140px;
}

.dest-thumb-lg {
    width: 90px;
    height: 90px;
}

@media (max-width: 576px) {
    .destination-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 4px;
        margin-bottom: 8px;
    }
    .destination-bubble {
        flex: 0 0 130px;
        text-align: center;
    }
}

/* Section headings */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 0.35rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.7);
    margin-bottom: 1rem;
}

/* Discover page */
.discover-section {
    margin-top: 12px;
}

.discover-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discover-hero {
    background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.25), transparent 25%), linear-gradient(135deg, #0ea5e9, #0c7ac7);
    color: #fff;
    border-radius: 20px;
}

.hero-ink {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.15), transparent 35%);
    pointer-events: none;
}

.hero-badge {
    min-width: 240px;
    border-radius: 16px;
    background: #fff;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pill-soft {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.opacity-90 {
    opacity: 0.9;
}

.nav-pills-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
}

.discover-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.discover-tab .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #0ea5e9;
}

.discover-tab.active {
    background: linear-gradient(135deg, #0ea5e9, #22c1c3);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
}

.discover-tab.active .dot {
    background: #fff;
}

.card-surface {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.discover-card {
    border: 1px solid #eef2f7;
    border-radius: 16px;
}

.discover-card.active-card {
    border-color: #0ea5e9;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.18);
}

.discover-spotlight {
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f9ff, #f9fbff);
}

.culture-spotlight {
    border-radius: 18px;
}

.culture-photo {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #000;
}

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

.culture-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.culture-card {
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.culture-card-accent {
    position: absolute;
    inset: auto 0 0 0;
    height: 6px;
    background: linear-gradient(135deg, #0ea5e9, #22c1c3);
}

.culture-brief {
    border-radius: 18px;
}

.badge-soft {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e0f2fe;
    font-size: 0.95rem;
}

.culture-list li {
    line-height: 1.5;
}

.icon-list {
    padding-left: 18px;
}

.icon-list li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .discover-hero h1 {
        font-size: 1.5rem;
    }
    .hero-badge {
        width: 100%;
    }
    .discover-tab {
        padding: 10px 12px;
    }
    .culture-spotlight,
    .culture-brief {
        padding: 18px;
    }
}
