/**
 * BorneoStay.My - Main Stylesheet
 * Modern, elegant homestay directory design
 */

/* =============================================
   CSS Variables / Design Tokens
   ============================================= */
:root {
    /* Primary Colors - Borneo Nature Inspired */
    --primary: #0d6e4f;
    /* Rainforest Green */
    --primary-dark: #094d37;
    --primary-light: #10a37f;
    --primary-gradient: linear-gradient(135deg, #0d6e4f 0%, #10a37f 100%);

    /* Secondary Colors */
    --secondary: #1a365d;
    /* Deep Ocean Blue */
    --secondary-light: #2c5282;

    /* Accent Colors */
    --accent: #f6ad55;
    /* Sunset Orange */
    --accent-light: #fbd38d;
    --accent-dark: #dd6b20;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-spacing: 100px;
    --container-padding: 1.5rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* =============================================
   Base Styles
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 76px;
    /* Navbar height */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.display-heading {
    font-family: var(--font-display);
    font-weight: 700;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================
   Navigation
   ============================================= */
#mainNav {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all var(--transition);
}

#mainNav.scrolled {
    background: rgba(13, 110, 79, 0.95);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.brand-accent {
    color: var(--accent);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.dropdown-menu-dark {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius);
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-switch {
    font-weight: 500;
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(13, 110, 79, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Hero Search Box */
.hero-search {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-search-input {
    flex: 1;
    min-width: 200px;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.hero-search-input:focus {
    outline: none;
    background: var(--gray-100);
}

.hero-search-select {
    min-width: 150px;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    cursor: pointer;
}

.hero-search-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
}

/* Stats Bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
    text-align: center;
    color: var(--white);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.hero-stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* =============================================
   Section Styles
   ============================================= */
.section {
    padding: var(--section-spacing) 0;
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

.section-light {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 110, 79, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* =============================================
   Region Cards
   ============================================= */
.region-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: transform var(--transition);
}

.region-card:hover {
    transform: translateY(-10px);
}

.region-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.region-card:hover .region-card-img {
    transform: scale(1.1);
}

.region-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.region-card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.region-card-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.region-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* =============================================
   Homestay Cards
   ============================================= */
.homestay-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.homestay-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.homestay-card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.homestay-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.homestay-card:hover .homestay-card-img {
    transform: scale(1.05);
}

.homestay-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.homestay-card-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.homestay-card-favorite:hover {
    background: var(--white);
    transform: scale(1.1);
}

.homestay-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.homestay-card-region {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.homestay-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.homestay-card-title a {
    color: inherit;
}

.homestay-card-title a:hover {
    color: var(--primary);
}

.homestay-card-location {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.homestay-card-amenities {
    display: flex;
    gap: 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.homestay-card-amenity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.homestay-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.homestay-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.homestay-card-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

/* =============================================
   Blog Cards
   ============================================= */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--gray-900);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-link:hover {
    gap: 0.5rem;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    border: none;
}

.btn-secondary:hover {
    background: var(--secondary-light);
}

.btn-accent {
    background: var(--accent);
    border: none;
    color: var(--white);
}

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

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================
   Forms
   ============================================= */
.form-control {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 79, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact li i {
    color: var(--primary-light);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

.made-with {
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   Back to Top Button
   ============================================= */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =============================================
   Flash Messages
   ============================================= */
.flash-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-fixed);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* =============================================
   Utility Classes
   ============================================= */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.bg-primary-light {
    background: rgba(13, 110, 79, 0.1);
}

.bg-accent-light {
    background: rgba(246, 173, 85, 0.1);
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

/* =============================================
   Responsive - Tablet (768px - 991px)
   ============================================= */
@media (max-width: 991.98px) {
    :root {
        --section-spacing: 60px;
    }

    body {
        padding-top: 70px;
    }

    .hero {
        margin-top: -70px;
        padding-top: 70px;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .region-card {
        height: 300px;
    }

    /* Navigation improvements for tablet */
    .navbar-collapse {
        background: rgba(26, 54, 93, 0.98);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    /* Cards side by side on tablet */
    .homestay-card-img-wrapper {
        height: 180px;
    }

    /* Footer grid adjustment */
    .footer-top .row>div {
        margin-bottom: 1.5rem;
    }
}

/* =============================================
   Responsive - Mobile Large (576px - 767px)
   ============================================= */
@media (max-width: 767.98px) {
    :root {
        --section-spacing: 50px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.65rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    h4 {
        font-size: 1.15rem;
    }

    body {
        font-size: 0.9375rem;
        padding-top: 65px;
    }

    .hero {
        margin-top: -65px;
        padding-top: 65px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Search box stacks vertically */
    .hero-search {
        padding: 0.75rem;
        border-radius: var(--radius-lg);
    }

    .hero-search-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-search-input,
    .hero-search-select,
    .hero-search-btn {
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-stat {
        min-width: 80px;
        flex: 1;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.875rem;
    }

    /* Region cards full width */
    .region-card {
        height: 220px;
        margin-bottom: 0;
    }

    .region-card-title {
        font-size: 1.5rem;
    }

    /* Homestay cards */
    .homestay-card-img-wrapper {
        height: 200px;
    }

    .homestay-card-body {
        padding: 1.25rem;
    }

    .homestay-card-title {
        font-size: 1.1rem;
    }

    .homestay-card-amenities {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .homestay-card-amenity {
        font-size: 0.8rem;
    }

    .homestay-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .homestay-card-footer .btn {
        width: 100%;
        text-align: center;
    }

    /* Blog cards */
    .blog-card-img-wrapper {
        height: 180px;
    }

    .blog-card-body {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer-top {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .footer-about {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        margin-top: 1.5rem;
    }

    .footer-bottom {
        text-align: center;
    }

    /* Touch-friendly interactions */
    .btn,
    .nav-link,
    a {
        -webkit-tap-highlight-color: transparent;
    }

    /* Larger touch targets */
    .form-control,
    .form-select {
        padding: 1rem;
        font-size: 1rem;
        min-height: 50px;
    }

    /* Back to top button - bigger for touch */
    .btn-back-to-top {
        width: 50px;
        height: 50px;
        right: 1rem;
        bottom: 5rem;
    }
}

/* =============================================
   Responsive - Mobile Small (< 576px)
   ============================================= */
@media (max-width: 575.98px) {
    :root {
        --section-spacing: 40px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .region-card {
        height: 200px;
    }

    .region-card-overlay {
        padding: 1.25rem;
    }

    .region-card-title {
        font-size: 1.35rem;
    }

    /* Full-width cards on small mobile */
    .homestay-card,
    .blog-card {
        margin-bottom: 1rem;
    }

    .homestay-card-amenities {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.5rem !important;
    }

    .feature-card .bi {
        font-size: 2.5rem !important;
    }

    /* Page headers (internal pages) */
    .page-header {
        padding: 80px 0 40px !important;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Legal pages content */
    .legal-content {
        font-size: 0.9375rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }

    .legal-content h3 {
        font-size: 1.1rem;
    }

    /* Gallery on detail page */
    .gallery-main {
        height: 250px !important;
    }

    /* Inquiry form improvements */
    .inquiry-form .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .inquiry-form .col-md-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Floating action buttons */
    .floating-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .floating-actions .btn {
        width: 100%;
    }
}

/* =============================================
   Cookie Consent Banner
   ============================================= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-800);
    color: var(--white);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-content a {
    color: var(--accent);
}

.cookie-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content .btn {
        width: 100%;
    }
}