:root {
    /* Color Palette - Premium & Modern */
    --primary: #4f46e5;      /* Indigo */
    --primary-hover: #4338ca;
    --secondary: #ec4899;    /* Pink */
    --accent: #0ea5e9;       /* Light Blue */
    --bg-main: #f8fafc;      /* Very Light Blue-Gray */
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --success: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);
    
    /* Border Radius */
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(236, 72, 153, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: var(--bg-main);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-tour {
    background: rgba(15, 23, 42, 0.8);
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.badge-tour:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.badge-split {
    background: var(--success);
    color: white;
}

.badge-shortlet {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    z-index: 100;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition-fast);
}

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-light);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.empty-state p {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 150px 2rem 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: white;
}

.hero .badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Search Bar functionality */
.search-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.4);
    text-align: left;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.search-tab {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
    padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.search-tab.active {
    color: var(--primary);
    border-color: var(--primary);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.custom-select:focus { color: var(--text-main); }

.search-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

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

/* --- Main Content --- */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    font-size: 2rem;
    color: var(--text-main);
}

.toggle-switch {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: var(--radius-full);
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.toggle-btn.active {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

/* Grid Layout */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    transition: opacity 0.3s ease;
}

.listings-grid.hidden {
    display: none;
    opacity: 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
}

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

.card-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-location .material-icons-outlined {
    font-size: 1rem;
}

.card-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    text-align: right;
}

.price-period {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.host-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.host-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}
.rating .star { color: #f59e0b; font-size: 1.1rem; }

/* --- Virtual Tour Promo --- */
.tour-promo {
    margin-top: 5rem;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    border-radius: var(--radius-lg);
    padding: 4rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 4rem;
    overflow: hidden;
    position: relative;
}

.tour-promo-content {
    flex: 1;
    z-index: 2;
}

.tour-promo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tour-promo-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 400px;
}

.tour-promo-visual {
    flex: 1;
    position: relative;
    height: 300px;
    z-index: 2;
}

.mesh-grid {
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.5;
}

.floating-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- Footer --- */
.footer {
    background: white;
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Modal (3D Tour Mock) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.tour-modal-content {
    width: 90vw;
    height: 85vh;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    color: white;
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
}

.close-btn {
    color: white;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}

.close-btn:hover { background: rgba(255,255,255,0.4); }

.tour-viewer {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: grab;
}

.tour-viewer:active { cursor: grabbing; }

.panoramic-container {
    height: 100%;
    width: 200%;
    display: flex;
    transition: transform 0.1s linear;
}

.panoramic-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
}

.viewer-ui {
    position: absolute;
    bottom: 2rem; right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.compass {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700;
    backdrop-filter: blur(4px);
}

.viewer-controls {
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.viewer-controls button {
    padding: 10px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.viewer-controls button:last-child { border-bottom: none; }
.viewer-controls button:hover { background: rgba(255,255,255,0.2); }

/* Hotspots */
.hotspot {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 5;
    cursor: pointer;
}

.hotspot-pulse {
    width: 20px; height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    animation: pulse 2s infinite;
    border: 2px solid white;
}

.hotspot-label {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.hotspot:hover .hotspot-label { opacity: 1; }

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Loader */
.loading-overlay {
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: #000;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* --- Floating Chat Bubble --- */
.floating-chat-bubble {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.floating-chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.5);
}

.chat-bubble-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

@media (max-width: 600px) {
    .floating-chat-bubble {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-title { font-size: 3rem; }
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-divider { width: 100%; height: 1px; }
    .tour-promo { flex-direction: column; padding: 2rem; }
    .tour-promo-visual { width: 100%; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero { padding-top: 120px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* --- Social Media Manager --- */
#social-container {
    margin-bottom: 1rem;
}

.social-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.social-platform {
    width: 140px;
    padding: 0.8rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    font-family: inherit;
    font-size: 0.9rem;
}

.delete-social-btn {
    background: #fee2e2;
    color: #ef4444;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.delete-social-btn:hover {
    background: #fecaca;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
