@import url("chat.css");

:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #555;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f5f5f9;
    --gray-200: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding-bottom: 120px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

video,
iframe,
embed,
object {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

pre {
    max-width: 100%;
    overflow: auto;
}

code {
    overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6,
p, a, li,
td, th {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {
    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Utilities */
.w-100 { width: 100% !important; }
.text-center { text-align: center; }
.text-secondary { color: var(--secondary-color); }
.text-warning { color: #f57f17; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }
.flex-row { display: flex; flex-direction: row; }
.gap-12 { gap: 12px; }
.gap-4 { gap: 4px; }
.items-center { align-items: center; }
.link-none { text-decoration: none; }
.color-inherit { color: inherit; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 760px; }

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

#branding a {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

#branding a:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 42px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-left: 40px;
}

nav ul {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1001;
}

.nav-overlay[hidden] {
    display: none;
}

html.nav-open {
    overflow: hidden;
}

.nav-auth-enhanced {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.nav-user-button {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-user-button:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(46, 125, 50, 0.25);
    box-shadow: 0 10px 18px rgba(46, 125, 50, 0.10);
}

.nav-user-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(46, 125, 50, 0.2);
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.nav-user-avatar svg {
    width: 20px;
    height: 20px;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

.nav-user-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.nav-user-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

.nav-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.nav-user-chevron {
    opacity: 0.5;
    margin-left: 2px;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.nav-user-button:hover .nav-user-chevron {
    opacity: 1;
    color: var(--primary-color);
    transform: rotate(180deg);
}

.nav-auth-guest {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 12px;
    padding: 8px 0;
    border: 1px solid rgba(0,0,0,0.05);
    top: 100%;
    margin-top: 10px;
    animation: fadeIn 0.2s ease-out;
}

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

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-section {
    padding: 4px 0;
}

.dropdown-header {
    display: block;
    padding: 8px 20px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af; /* Gray-400 */
    letter-spacing: 0.5px;
}

/* Base link style for backward compatibility or generic links */
.dropdown-content a {
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item {
    /* Inherits from .dropdown-content a, but we can add specifics if needed */
}

.dropdown-content a:hover, .dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.dropdown-content a svg, .dropdown-item svg {
    width: 18px;
    height: 18px;
    color: #9ca3af; /* Gray-400 */
    transition: color 0.2s ease;
}

.dropdown-content a:hover svg, .dropdown-item:hover svg {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb; /* Gray-200 */
    margin: 4px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

nav a {
    font-weight: 600;
    color: var(--secondary-color);
    padding: 10px 14px;
    position: relative;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
}

nav .dropdown-content a {
    display: flex;
    justify-content: flex-start;
    text-align: left;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background: rgba(255,255,255,0.95);
    border-color: rgba(46, 125, 50, 0.18);
    box-shadow: 0 8px 14px rgba(46, 125, 50, 0.08);
    transform: translateY(-1px);
}

nav a::after {
    display: none;
}

nav a:hover::after, nav a.active::after {
    display: none;
}

nav a .nav-item-icon {
    display: inline-flex;
    color: #64748b;
}

nav a .nav-item-icon svg {
    width: 16px;
    height: 16px;
}

nav a[href$="index.php"] .nav-item-icon { color: #22c55e; }
nav a[href$="stays.php"] .nav-item-icon { color: #0ea5e9; }
nav a[href$="guides.php"] .nav-item-icon { color: #f59e0b; }
nav a[href$="transport.php"] .nav-item-icon { color: #8b5cf6; }
nav a[href$="login.php"] .nav-item-icon { color: #38bdf8; }
nav a[href$="register.php"] .nav-item-icon { color: rgba(255,255,255,0.95); }
nav a[href$="mobile_app.php"] .nav-item-icon { color: rgba(255,255,255,0.95); }

.nav-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.3);
}

.nav-cta.active::after, .nav-cta:hover::after {
    display: none;
}

/* Buttons */
button, .btn-primary {
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 1rem;
    transition: background 0.2s;
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--gray-200);
    color: var(--secondary-color);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-link {
    color: var(--primary-color);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

.action-btn {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Alerts */
.error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #c62828;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid #2e7d32;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #branding {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #branding a {
        justify-content: center;
    }

    nav {
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    nav ul > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 10px;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 12px;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    nav ul > li > a::after {
        display: none;
    }

    nav ul > li > a.nav-cta {
        display: none;
    }

    .nav-auth-enhanced {
        justify-content: center;
    }

    .nav-auth-guest {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dropdown-content {
        right: 50%;
        transform: translateX(50%);
    }

    .hero {
        padding: 20px 12px 26px;
    }

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

    .spots-grid {
        gap: 20px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 34px;
    }

    .brand-title {
        font-size: 1.02rem;
    }

    .brand-subtitle {
        display: none;
    }

    .nav-user-text {
        display: none;
    }

    .nav-user-button {
        padding: 6px;
        gap: 8px;
    }

    nav ul {
        grid-template-columns: 1fr;
    }

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

    .spots-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label, .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input, 
.form-group select, 
.form-group textarea,
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content, .modal-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section (Common) - compact, no banner */
.hero {
    background: transparent;
    padding: 16px 20px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title {
    font-size: 1.4rem;
    margin-bottom: 0;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: var(--secondary-color);
}

.hero .search-bar {
    margin: 4px 0 0 0;
}

.search-bar {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 0;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    min-width: 0;
    gap: 10px;
    align-items: center;
}

.search-icon {
    color: #6b7280;
    display: none;
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 12px 14px;
    font-size: 1.02rem;
    border-radius: 14px;
    outline: none;
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input:hover {
    border-color: rgba(0,0,0,0.14);
}

.search-input:focus {
    border-color: rgba(46, 125, 50, 0.55);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.14);
}

select.search-input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-bar .btn-primary {
    padding: 12px 18px;
    border-radius: 14px;
    margin-left: 0;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (max-width: 700px) {
    .search-bar {
        flex-wrap: wrap;
    }

    .search-input {
        flex: 1 1 100%;
        width: 100%;
    }

    .search-bar .btn-primary {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* Shared Components */

/* Main Layout */
.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.main-layout.single-column {
    grid-template-columns: 1fr;
}

.main-layout.full-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Chips & Tags */
.chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.chip {
    font-size: 0.85rem;
    background: rgba(255,255,255,0.2);
    color: inherit;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.spot-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.spot-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.spot-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spot-card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.spot-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

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

.spot-card-desc {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 4px 0 0;
}

/* Spots Stream (Home) */
.spots-stream {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.spot-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
    padding: 18px 22px;
    border-radius: 24px;
    position: relative;
}

.spot-row:last-child {
    margin-bottom: 0;
}

.spot-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.9);
}

.spot-row:nth-child(even) {
    background: var(--gray-100);
}

.spot-row-media {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.spot-row-image-link {
    display: block;
    position: relative;
}

.spot-row-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spot-row-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
    pointer-events: none;
}

.spot-row-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    color: #f9fafb;
    font-size: 0.8rem;
    backdrop-filter: blur(8px);
}

.spot-row-rating {
    font-weight: 600;
}

.spot-row-comments {
    opacity: 0.85;
}

.spot-row-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: flex-start;
}

.spot-row-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 32px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.spot-row-index span:first-child {
    font-weight: 600;
    letter-spacing: 0.1em;
}

.spot-row-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, rgba(148,163,184,0.2), rgba(148,163,184,0.8));
    border-radius: 999px;
}

.spot-row-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-row-title a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.spot-row-title a:hover {
    color: var(--primary-color);
}

.spot-row-desc {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.spot-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.spot-row-meta-dot {
    opacity: 0.5;
}

.spot-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.spot-row-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.spot-row-cta-line {
    width: 42px;
    height: 1px;
    background: var(--primary-color);
    transform-origin: left;
    transform: scaleX(0.6);
    transition: transform 0.25s ease;
}

.spot-row:hover .spot-row-img {
    transform: scale(1.08);
}

.spot-row:hover .spot-row-cta-line {
    transform: scaleX(1);
}

.spot-row-reverse {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
}

.spot-row-reverse .spot-row-media {
    order: 2;
}

.spot-row-reverse .spot-row-content {
    order: 1;
}

.spot-row-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spot-row-visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-link {
    color: var(--primary-color);
    font-weight: 600;
}

.spot-row-share-btn {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: #ffffff;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.spot-row-share-btn:hover {
    background: #f3f4f6;
    border-color: #cbd5f5;
    transform: translateY(-1px);
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .spots-stream {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 20px auto 44px;
        padding: 0 14px;
    }

    .spot-row-desc,
    .spot-card-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .spot-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        margin-bottom: 0;
        border-radius: 18px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(15,23,42,0.07);
    }

    .spot-row:nth-child(odd),
    .spot-row:nth-child(even) {
        background: #ffffff;
    }

    .spot-row-media {
        border-radius: 0;
    }

    .spot-row-img {
        height: 140px;
    }

    .spot-row-content {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 14px 16px;
    }

    .spot-row-index {
        display: none;
    }

    .spot-row-title a {
        font-size: 1.02rem;
    }

    .spot-row-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 6px;
    }

    .spot-row-cta {
        width: 100%;
        justify-content: space-between;
        margin-top: 0;
    }

    .spot-row-share-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
    }

    .spot-row-reverse .spot-row-media {
        order: 1;
    }

    .spot-row-reverse .spot-row-content {
        order: 2;
    }
}

.site-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #0f172a;
    color: #e5e7eb;
    padding: 24px 16px;
    z-index: 100;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.footer-col {
    font-size: 0.8rem;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f3f4f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    display: block;
    position: relative;
    padding-left: 10px;
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: #d1d5db;
    opacity: 0.8;
    text-decoration: none;
    line-height: 1.4;
}

.footer-link::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-tab {
    display: none;
    position: fixed;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 10001;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15, 23, 42, 0.92);
    color: #f3f4f6;
    font-weight: 900;
    letter-spacing: 0.03em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.footer-tab-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 10000;
}

.footer-tab-overlay[hidden] {
    display: none;
}

@media (max-width: 1024px) {
    body {
        padding-bottom: 84px;
    }

    .footer-tab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-footer {
        z-index: 10002;
        max-height: min(72vh, 520px);
        overflow-y: auto;
        transform: translateY(110%);
        transition: transform 0.25s ease;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        pointer-events: none;
    }

    html.footer-open .site-footer {
        transform: translateY(0);
        pointer-events: auto;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* Enhanced Dropdown Styles */
.dropdown-content {
    min-width: 240px;
    padding: 8px 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown-section {
    padding: 4px 0;
}

.dropdown-header {
    display: block;
    padding: 8px 20px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280; /* Gray-500 */
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: #9ca3af; /* Gray-400 */
    transition: color 0.2s ease;
}

.dropdown-item:hover svg {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb; /* Gray-200 */
    margin: 4px 0;
}

/* Override existing .dropdown-content a if necessary, but specificity should handle it or cascade */
.dropdown-content a.dropdown-item {
    /* Ensure flex display is prioritized */
    display: flex;
}
