/**
 * Vasto Directory Styles
 * Version: 1.0.0
 *
 * Bilingual directory for restaurants and hotels in Vasto, Italy
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Colors - Mediterranean inspired */
    --vasto-primary: #1565C0;      /* Mediterranean blue */
    --vasto-secondary: #FF6B35;    /* Sunset orange */
    --vasto-accent: #4CAF50;       /* Italian green */
    --vasto-dark: #2C3E50;
    --vasto-light: #F5F7FA;
    --vasto-white: #FFFFFF;
    --vasto-text: #333333;
    --vasto-text-light: #666666;
    --vasto-border: #E0E0E0;

    /* Star rating */
    --star-filled: #FFB400;
    --star-empty: #E0E0E0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.language-switcher .lang-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--vasto-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--vasto-text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.language-switcher .lang-link:hover {
    border-color: var(--vasto-primary);
    color: var(--vasto-primary);
}

.language-switcher .lang-link.active {
    background: var(--vasto-primary);
    border-color: var(--vasto-primary);
    color: var(--vasto-white);
}

.language-switcher .lang-link img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

/* ==========================================================================
   English Spoken Badge
   ========================================================================== */

.english-spoken-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E3F2FD;
    border: 1px solid var(--vasto-primary);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vasto-primary);
}

.english-spoken-badge img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* ==========================================================================
   TripAdvisor Attribution
   ========================================================================== */

.tripadvisor-attribution {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--vasto-light);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.tripadvisor-attribution img {
    height: 24px;
    width: auto;
}

.tripadvisor-attribution span {
    color: var(--vasto-text-light);
    font-size: 14px;
}

.tripadvisor-attribution a {
    margin-left: auto;
    color: var(--vasto-primary);
    text-decoration: none;
    font-weight: 500;
}

.tripadvisor-attribution a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Star Rating
   ========================================================================== */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-rating .star {
    font-size: 16px;
    color: var(--star-empty);
}

.star-rating .star.filled {
    color: var(--star-filled);
}

.star-rating .star.half {
    background: linear-gradient(90deg, var(--star-filled) 50%, var(--star-empty) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.star-rating .rating-number {
    margin-left: var(--space-xs);
    font-weight: 600;
    font-size: 14px;
    color: var(--vasto-text);
}

/* ==========================================================================
   Business Cards Grid
   ========================================================================== */

.vasto-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.vasto-card {
    background: var(--vasto-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.vasto-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.vasto-card-image .badge-container {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    gap: var(--space-xs);
}

.vasto-card-content {
    padding: var(--space-md);
}

.vasto-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--vasto-text);
    margin: 0 0 var(--space-sm) 0;
}

.vasto-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.vasto-card-cuisine {
    color: var(--vasto-text-light);
    font-size: 14px;
}

.vasto-card-price {
    font-weight: 600;
    color: var(--vasto-accent);
}

.vasto-card-location {
    color: var(--vasto-text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.vasto-card-location::before {
    content: "📍";
}

/* ==========================================================================
   Single Business Page
   ========================================================================== */

.vasto-single-hero {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto var(--space-xl) auto;
    height: 400px;
    background-size: cover;
    background-position: bottom;
    border-radius: var(--radius-lg);
    position: relative;
    display: flex;
    align-items: flex-end;
}

.vasto-single-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.7) 100%);
    border-radius: var(--radius-lg);
}

.vasto-single-hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl);
    color: var(--vasto-white);
    width: 100%;
}

.vasto-single-hero h1 {
    font-size: 36px;
    margin: 0 0 var(--space-sm) 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.vasto-single-hero .hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.vasto-single-hero .hero-meta .star-rating .star {
    font-size: 20px;
}

.vasto-single-hero .hero-meta .star-rating .rating-number {
    color: var(--vasto-white);
}

/* Content layout */
.vasto-single-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
    padding: 0 var(--space-md);
}

@media (max-width: 900px) {
    .vasto-single-content {
        grid-template-columns: 1fr;
    }
}

.vasto-single-main {
    min-width: 0;
}

.vasto-single-main h2 {
    font-size: 24px;
    margin: var(--space-xl) 0 var(--space-md) 0;
    color: var(--vasto-text);
}

.vasto-single-main h2:first-child {
    margin-top: 0;
}

/* Sidebar */
.vasto-single-sidebar {
    min-width: 0;
}

.vasto-sidebar-card {
    background: var(--vasto-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.vasto-sidebar-card h3 {
    font-size: 18px;
    margin: 0 0 var(--space-md) 0;
    color: var(--vasto-text);
}

.vasto-info-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--vasto-border);
}

.vasto-info-row:last-child {
    border-bottom: none;
}

.vasto-info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.vasto-info-content {
    flex-grow: 1;
}

.vasto-info-label {
    font-size: 12px;
    color: var(--vasto-text-light);
    text-transform: uppercase;
}

.vasto-info-value {
    color: var(--vasto-text);
    font-size: 15px;
}

.vasto-info-value a {
    color: var(--vasto-primary);
    text-decoration: none;
}

.vasto-info-value a:hover {
    text-decoration: underline;
}

/* Highlights list */
.vasto-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vasto-highlights li {
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.vasto-highlights li::before {
    content: "✓";
    color: var(--vasto-accent);
    font-weight: bold;
}

/* Booking buttons */
.vasto-booking-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.vasto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.vasto-btn-booking {
    background: #003580;
    color: var(--vasto-white);
}

.vasto-btn-booking:hover {
    background: #00224F;
}

.vasto-btn-airbnb {
    background: #FF5A5F;
    color: var(--vasto-white);
}

.vasto-btn-airbnb:hover {
    background: #E54750;
}

.vasto-btn-tripadvisor {
    background: #34E0A1;
    color: #000;
}

.vasto-btn-tripadvisor:hover {
    background: #00AA6C;
}

.vasto-btn-call {
    background: var(--vasto-accent);
    color: var(--vasto-white);
}

.vasto-btn-call:hover {
    background: #388E3C;
}

/* Tourist tips box */
.vasto-tourist-tips {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.vasto-tourist-tips h3 {
    color: #F57C00;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 0 var(--space-md) 0;
}

.vasto-tourist-tips h3::before {
    content: "💡";
}

.vasto-tourist-tips p {
    margin: 0;
    color: var(--vasto-text);
}

/* ==========================================================================
   Map Container
   ========================================================================== */

.vasto-map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-md) 0;
}

.vasto-map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

.vasto-archive-header {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--vasto-light);
    margin-bottom: var(--space-xl);
}

.vasto-archive-header h1 {
    font-size: 36px;
    margin: 0 0 var(--space-sm) 0;
    color: var(--vasto-text);
}

.vasto-archive-header p {
    color: var(--vasto-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.vasto-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background: var(--vasto-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.vasto-filter-group {
    flex: 1;
    min-width: 200px;
}

.vasto-filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--vasto-text-light);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.vasto-filter-group select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--vasto-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--vasto-white);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .vasto-single-hero {
        height: 300px;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .vasto-single-hero h1 {
        font-size: 28px;
    }

    .vasto-card-grid {
        grid-template-columns: 1fr;
    }

    .vasto-archive-header h1 {
        font-size: 28px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.vasto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.vasto-mt-sm { margin-top: var(--space-sm); }
.vasto-mt-md { margin-top: var(--space-md); }
.vasto-mt-lg { margin-top: var(--space-lg); }
.vasto-mt-xl { margin-top: var(--space-xl); }

.vasto-mb-sm { margin-bottom: var(--space-sm); }
.vasto-mb-md { margin-bottom: var(--space-md); }
.vasto-mb-lg { margin-bottom: var(--space-lg); }
.vasto-mb-xl { margin-bottom: var(--space-xl); }
