/* --- Premium CSS Reset & Design Tokens --- */
:root {
    --primary-color: #e85d04;       /* Sandy sunset orange */
    --primary-hover: #dc2f02;
    --secondary-color: #0077b6;     /* Deep sea blue */
    --secondary-hover: #0096c7;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1d2d44;           /* Soft dark slate */
    --text-muted: #6c757d;
    --accent-green: #2a9d8f;        /* Tropical palm green */
    --coral: #f4a261;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Common Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-round);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 6px 16px rgba(232, 93, 4, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 47, 2, 0.35);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    box-shadow: 0 6px 16px rgba(0, 119, 182, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 150, 199, 0.35);
}

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

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-round {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-text:hover {
    color: var(--secondary-hover);
}

.btn-text i {
    transition: var(--transition);
}

.btn-text:hover i {
    transform: translateX(6px);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(232, 93, 4, 0.08);
    color: var(--primary-color);
    border-radius: var(--radius-round);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Section Formatting --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

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

/* --- Navigation Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.logo-accent {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    to { transform: scale(1); }
}

.hero-content {
    max-width: 800px;
    color: var(--bg-white);
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: var(--radius-round);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(134% + 1.3px);
    height: 60px;
}

.hero-wave .shape-fill {
    fill: var(--bg-light);
}

/* --- Hosts Section --- */
.hosts-section {
    background-color: var(--bg-light);
}

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

.host-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

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

.host-img-container {
    height: 320px;
    position: relative;
    overflow: hidden;
}

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

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

.host-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 20px;
    font-weight: 700;
    border-radius: var(--radius-round);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.host-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.host-info h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.host-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.host-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 20px;
}

.host-meta i {
    color: var(--primary-color);
    margin-right: 6px;
}

.host-homestays-list {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* --- Filter & Homestays Grid --- */
.homestays-section {
    background-color: var(--bg-white);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border-radius: var(--radius-round);
    border: 2px solid rgba(0, 0, 0, 0.05);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(232, 93, 4, 0.25);
}

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

.homestay-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

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

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

.owner-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 6px 16px;
    font-weight: 700;
    border-radius: var(--radius-round);
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 119, 182, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.homestay-card:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-location {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-features {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.card-features span {
    font-size: 0.8rem;
    background-color: rgba(0, 119, 182, 0.06);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 24px;
}

.card-btn {
    width: 100%;
}

/* --- Explore Ninh Thuan --- */
.explore-section {
    background-color: var(--bg-light);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.explore-item {
    background-color: var(--bg-white);
    padding: 48px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.explore-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.explore-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(232, 93, 4, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 auto 28px;
    transition: var(--transition);
}

.explore-item:hover .explore-icon-wrapper {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.explore-item h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.explore-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--bg-white);
}

.contact-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.contact-info-card {
    background: linear-gradient(135deg, #1d2d44 0%, #0d1b2a 100%);
    color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(13, 27, 42, 0.25);
}

.card-host-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
}

.card-host-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.host-avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background-color: var(--accent-green);
    border-radius: 50%;
    border: 3px solid #142235;
}

.contact-info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--bg-white);
}

.host-role {
    font-size: 0.95rem;
    color: var(--coral);
    margin-bottom: 36px;
    font-weight: 500;
}

.contact-methods {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
    flex-grow: 1;
}

.method-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.method-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

.method-item:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.method-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--coral);
    transition: var(--transition);
}

.method-item:hover .method-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
}

.border-top-dashed {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.card-social-links {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.card-social-links .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* --- Footer --- */
.main-footer {
    background-color: #0f1a24;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hosts-grid, .homestays-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .explore-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        padding: 40px;
        transition: var(--transition);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}
