/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --border-color: #dee2e6;
}

body {
    font-family: 'Quicksand', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: white;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', 'Georgia', serif;
    font-weight: 600;
    margin-top: 0;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2980b9;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    max-width: 80%;
}

/* Navigation */
.nav-container {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.nav-tabs li {
    flex: 0 0 auto;
}

.nav-tabs a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-tabs a:hover, .nav-tabs a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Main Content Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        margin: 20px 0;
    }
    /* Add spacing between description and facts cards when stacked */
    .description-card {
        margin-bottom: 30px;
    }
    
    .facts-container {
        margin-bottom: 30px;
    }
    
    /* Add spacing between weather and time widgets when stacked */
    .weather-widget {
        margin-bottom: 25px;
    }
    
    .time-widget {
        margin-bottom: 25px;
    }
}

/* Overview column layout */
.overview-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Island Description */
.island-description {
    margin-bottom: 30px;
}

.island-description p {
    margin-top: 0;
    font-size: 1.1rem;
}

.flag-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.country-flag {
    width: 80px;
    height: auto;
    margin-right: 20px;
    border: 1px solid var(--border-color);
}

.country-name {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Facts Table */
.facts-container {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.facts-table {
    width: 100%;
    border-collapse: collapse;
}

.facts-table th, .facts-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.facts-table th {
    width: 40%;
    text-align: left;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.facts-table td {
    color: white;
}

.facts-table tr:last-child th, 
.facts-table tr:last-child td {
    border-bottom: none;
}

/* Description Card */
.description-card {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.description-card h2 {
    color: white;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.description-card p {
    margin-top: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.flag-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.country-flag {
    width: 80px;
    height: auto;
    margin-right: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.country-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
}

/* Weather and Time Widget Styles */
.widget-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.weather-widget, .time-widget {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.weather-widget h3, .time-widget h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.current-weather, .current-time {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex: 1;
}

.weather-icon, .time-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    opacity: 0.9;
}

.weather-temp, .time-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.weather-desc, .time-zone {
    margin-top: 5px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.weather-details, .time-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.weather-detail, .time-detail {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.weather-detail span:first-child, .time-detail span:first-child {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.weather-detail span:last-child, .time-detail span:last-child {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Type Banner */
.type-banner {
    width: 100%;
    height: 200px;
    position: relative;
    margin: 40px 0;
    overflow: hidden;
    border-radius: 8px;
}

.type-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-title {
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Content Sections */
.section {
    margin: 60px 0;
    scroll-margin-top: 70px; /* For smooth scrolling with sticky nav */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

.column-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Forecast Cards */
.forecast-container {
    margin: 30px 0;
}

.forecast-card {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.forecast-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0;
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

.forecast-day {
    flex: 1 1 0;
    min-width: 80px;
    text-align: center;
    padding: 0 4px;
    background: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.forecast-date {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: #fff;
}

.forecast-date-full {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.forecast-icon {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forecast-temp {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFB90;
    margin-bottom: 0;
}

/* Places Section */
.places-container {
    margin: 30px 0;
    }

.places-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.place-card-large {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    cursor: pointer;
}

.place-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.place-rank {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Gold medal for 1st place */
.place-rank[data-rank="1"] {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    border: 2px solid #FFA500;
}

/* Silver medal for 2nd place */
.place-rank[data-rank="2"] {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: #2F4F4F;
    border: 2px solid #A9A9A9;
}

/* Bronze medal for 3rd place */
.place-rank[data-rank="3"] {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: #8B4513;
    border: 2px solid #B8860B;
}

/* Default for other places */
.place-rank:not([data-rank="1"]):not([data-rank="2"]):not([data-rank="3"]) {
    background: #2c3e50;
    color: white;
    border: 2px solid #34495e;
}

.place-content-large {
    display: flex;
    width: 100%;
    gap: 25px;
    align-items: flex-start;
}

.place-text-content {
    flex: 1;
    padding-right: 20px;
}

.place-title-large {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.2;
}

.place-rating-large {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.rating-stars {
    display: flex;
    gap: 3px;
    align-items: center;
}

.rating-stars i {
    color: #f39c12;
    font-size: 18px;
}

.rating-count {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
}

.place-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.place-image-large {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.place-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.place-card-large:hover .place-image-large img {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .place-card-large {
        padding: 20px;
        gap: 15px;
    }
    
    .place-content-large {
        flex-direction: column;
        gap: 20px;
    }
    
    .place-text-content {
        padding-right: 0;
    }
    
    .place-image-large {
        width: 100%;
        height: 200px;
        order: -1;
    }
    
    .place-title-large {
        font-size: 26px;
}
    
    .rating-number {
        font-size: 24px;
    }
    
    .rating-stars i {
        font-size: 16px;
    }
    
    .rating-count {
        font-size: 14px;
    }
    
    .place-description {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .place-rank {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: -10px;
        left: -10px;
    }
}

@media (max-width: 768px) {
    .forecast-row {
        gap: 2px;
    }
    .forecast-day {
        min-width: 70px;
}
}



/* Reviews */
.reviews-container {
    margin: 30px 0;
}

.review-summary {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.review-average {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 30px;
    margin-right: 30px;
    border-right: 1px solid var(--medium-gray);
}

.average-rating {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
}

.total-reviews {
    font-size: 0.9rem;
    color: #666;
}

.star-rating {
    color: #ffc107;
    font-size: 1.2rem;
}

.review-card {
    margin-bottom: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: var(--light-gray);
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-content {
    line-height: 1.6;
}

.more-reviews {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.more-reviews:hover {
    background-color: #2980b9;
    color: white;
}

/* API Loading */
.api-loading, 
.api-error {
    padding: 15px;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 8px;
    color: #666;
}

.api-error {
    background-color: #ffebee;
    color: #c62828;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .review-summary {
        flex-direction: column;
    }
    .review-average {
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--medium-gray);
    }
    .widget-container {
        grid-template-columns: 1fr;
        gap: 60px;
        margin: 20px 0;
    }
    
    .weather-widget {
        margin-bottom: 25px;
    }
    
    .time-widget {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 40vh;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .nav-tabs a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

.time-widget {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9));
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.time-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.time-widget.day::before {
    background-image: url('/assets/images/backgrounds/day-sky.jpg');
}

.time-widget.night::before {
    background-image: url('/assets/images/backgrounds/night-sky.jpg');
}

.time-widget > * {
    position: relative;
    z-index: 1;
}

.weather-widget {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.9));
    color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* Weather background classes */
.weather-widget.clear::before {
    background-image: url('/assets/images/backgrounds/clear-sky.jpg');
}

.weather-widget.cloudy::before {
    background-image: url('/assets/images/backgrounds/cloudy.jpg');
}

.weather-widget.rainy::before {
    background-image: url('/assets/images/backgrounds/rainy.jpg');
}

.weather-widget.snowy::before {
    background-image: url('/assets/images/backgrounds/snowy.jpg');
}

.weather-widget.stormy::before {
    background-image: url('/assets/images/backgrounds/stormy.jpg');
}

.weather-widget.foggy::before {
    background-image: url('/assets/images/backgrounds/foggy.jpg');
}

.weather-widget > * {
    position: relative;
    z-index: 1;
}

/* Climate Image Cards */
.climate-image-card,
.best-time-image-card {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.climate-image,
.best-time-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.climate-image-card:hover,
.best-time-image-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}



.current-time {
    display: flex;
    align-items: flex-end;
    margin-bottom: 20px;
    flex: 1;
}
.time-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    padding-left: 18px;
}
.time-zone {
    margin-top: 5px;
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: left;
    padding-left: 18px;
}

/* Add forecast title styling */
.forecast-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 1.5px solid rgba(255,255,255,0.18);
    text-align: left;
    letter-spacing: 0.5px;
}



.review-helpful-container {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #3498db;
}
.review-card {
    position: relative;
}
.helpful-btn {
    background: none;
    border: none;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.helpful-btn:hover {
    background: #eaf6ff;
}
.helpful-btn:active {
    background: #d0eaff;
}
.helpful-btn[disabled] {
    color: #aaa;
    cursor: not-allowed;
}

.review-card-flex {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    padding: 24px 20px;
    position: relative;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--light-gray);
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.review-meta {
    text-align: right;
}

.review-date {
    color: #666;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.review-rating {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}

.review-content-flex {
    font-size: 1.08rem;
    color: #222;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: break-word;
    padding-bottom: 40px;
}

.review-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

.helpful-btn {
    background: none;
    border: none;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    text-decoration: none;
}

.helpful-btn:hover {
    background: #eaf6ff;
}

.helpful-btn:active {
    background: #d0eaff;
}

.helpful-btn[disabled] {
    color: #aaa;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .review-card-flex {
        padding: 18px 10px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .review-meta {
        text-align: left;
        width: 100%;
    }
    
    .review-stars {
        justify-content: flex-start;
    }
    
    .review-content-flex {
        font-size: 1rem;
    }
    
    .review-helpful-container {
        bottom: 18px;
        right: 10px;
    }
}

/* Map Styles */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.island-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Airport Styles */
.airport-container {
    margin: 30px 0;
}

.airport-card {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.airport-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.airport-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.airport-info {
    flex: 1;
}

.airport-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: white;
}

.airport-code {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.airport-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.airport-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

.detail-value a {
    color: #FFFB90;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .airport-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .airport-header {
        gap: 10px;
    }
    
    .airport-icon {
        font-size: 1.3rem;
    }
    
    .airport-name {
        font-size: 1rem;
    }
    
    .airport-code {
        font-size: 0.9rem;
    }
}

.review-section {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}
.review-summary-left {
  min-width: 260px;
  max-width: 300px;
  flex: 0 0 260px;
}
.average-rating-big {
  font-size: 3.5rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
}
.average-rating-big .star {
  color: #ffc107;
  font-size: 2.2rem;
  vertical-align: middle;
}
.review-count {
  color: #666;
  margin-bottom: 18px;
}
.star-bars {
  margin-top: 10px;
}

/* Mobile layout for rating summary */
@media (max-width: 768px) {
  .review-section {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
  }
  
  .review-summary-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  
  .rating-and-bars {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .rating-info {
    text-align: center;
    flex-shrink: 0;
  }
  
  .star-bars {
    margin-top: 0;
    max-width: 250px;
    display: block !important;
    flex-shrink: 0;
  }
  
  .star-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    min-width: 200px;
  }
  
  .star-label {
    width: 32px;
    text-align: right;
    margin-right: 8px;
    color: #222;
    flex-shrink: 0;
  }
  
  .star-bar-bg {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin-right: 8px;
    overflow: hidden;
    min-width: 100px;
  }
  
  .star-bar-count {
    width: 24px;
    text-align: left;
    color: #666;
    flex-shrink: 0;
  }
  
  .review-list-right {
    width: 100%;
  }
  
  .review-search-bar {
    width: 100%;
    margin: 0 0 20px 0;
    max-width: 100%;
  }
  
  .review-search-bar input {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px 12px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #ccc;
  }
  
  /* Button fits under rating */
  .review-section .more-reviews,
  .review-section a[href*="login.php"] {
    display: inline-block;
    text-align: center;
    margin-top: 15px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
  }
}
.star-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.star-label {
  width: 32px;
  text-align: right;
  margin-right: 8px;
  color: #222;
}
.star-bar-bg {
  flex: 1;
  height: 10px;
  background: #eee;
  border-radius: 5px;
  margin-right: 8px;
  overflow: hidden;
}
.star-bar-fill {
  height: 100%;
  background: #ffc107;
  border-radius: 5px;
}
.star-bar-count {
  width: 24px;
  text-align: left;
  color: #666;
}
.review-list-right {
  flex: 1;
}
.review-search-bar {
  margin-bottom: 18px;
}
.review-search-bar input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* Responsive Review Section */
@media (max-width: 1024px) {
  .review-section {
    gap: 30px;
  }
  
  .review-summary-left {
    min-width: 240px;
    max-width: 280px;
    flex: 0 0 240px;
  }
  
  .average-rating-big {
    font-size: 3rem;
  }
  
  .average-rating-big .star {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .review-section {
    flex-direction: column;
    gap: 30px;
  }
  
  .review-summary-left {
    min-width: 100%;
    max-width: 100%;
    flex: none;
    order: 1;
    margin-bottom: 20px;
  }
  
  .review-list-right {
    order: 2;
  }
  
  .average-rating-big {
    font-size: 2.8rem;
    text-align: center;
  }
  
  .review-count {
    text-align: center;
  }
  
  .star-bars {
    max-width: 300px;
    margin: 10px auto 0;
  }
  
  .review-search-bar {
    margin-bottom: 20px;
  }
  
  .review-search-bar input {
    font-size: 0.95rem;
    padding: 12px 16px;
  }
}

@media (max-width: 600px) {
  .review-section {
    gap: 25px;
    margin-bottom: 30px;
  }
  
  .average-rating-big {
    font-size: 2.5rem;
  }
  
  .average-rating-big .star {
    font-size: 1.8rem;
  }
  
  .star-bars {
    max-width: 250px;
  }
  
  .star-label {
    width: 28px;
    font-size: 0.9rem;
  }
  
  .star-bar-count {
    width: 20px;
    font-size: 0.85rem;
  }
  
  .review-card-flex {
    padding: 16px 12px;
    margin-bottom: 20px;
  }
  
  .review-search-bar {
    padding: 0 12px;
  }
  
  .review-search-bar input {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .review-header {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .reviewer-info {
    gap: 10px;
  }
  
  .reviewer-avatar {
    width: 40px;
    height: 40px;
  }
  
  .reviewer-name {
    font-size: 1rem;
  }
  
  .review-meta {
    text-align: left;
    width: 100%;
  }
  
  .review-date {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }
  
  .review-stars {
    justify-content: flex-start;
    gap: 6px;
  }
  
  .review-rating {
    font-size: 1rem;
  }
  
  .review-content-flex {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 30px;
  }
  
  .review-title {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
  }
  
  .review-helpful-container {
    bottom: 12px;
    right: 12px;
    font-size: 0.9rem;
  }
  
  .helpful-btn {
    font-size: 0.9rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .review-section {
    gap: 20px;
    margin-bottom: 25px;
  }
  
  .average-rating-big {
    font-size: 2.2rem;
  }
  
  .average-rating-big .star {
    font-size: 1.6rem;
  }
  
  .review-count {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .star-bars {
    max-width: 220px;
  }
  
  .star-bar-row {
    margin-bottom: 4px;
  }
  
  .star-label {
    width: 24px;
    font-size: 0.85rem;
  }
  
  .star-bar-bg {
    height: 8px;
  }
  
  .star-bar-count {
    width: 18px;
    font-size: 0.8rem;
  }
  
  .review-card-flex {
    padding: 14px 10px;
    margin-bottom: 16px;
  }
  
  .reviewer-avatar {
    width: 36px;
    height: 36px;
  }
  
  .reviewer-name {
    font-size: 0.95rem;
  }
  
  .review-date {
    font-size: 0.8rem;
  }
  
  .review-content-flex {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-bottom: 25px;
  }
  
  .review-title {
    font-size: 1rem;
    margin: 0 0 8px 0;
  }
  
  .review-helpful-container {
    bottom: 10px;
    right: 10px;
    font-size: 0.85rem;
  }
  
  .helpful-btn {
    font-size: 0.85rem;
    padding: 3px 6px;
  }
  
  .review-search-bar input {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
} 

/* Restaurants Section */
.restaurants-container {
    margin-top: 30px;
}

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

.restaurant-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.restaurant-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.restaurant-info {
    padding: 15px;
}

.restaurant-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-color);
    line-height: 1.3;
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.restaurant-rating .rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.restaurant-rating .rating-number {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.restaurant-rating .rating-count {
    color: #666;
    font-size: 0.8rem;
}

.restaurant-price {
    margin-bottom: 8px;
    font-weight: 600;
    color: #27ae60;
    font-size: 1rem;
}

.restaurant-address {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive Design for Restaurants */
@media (max-width: 1200px) {
    .restaurants-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .restaurant-image {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .restaurant-image {
        height: 200px;
    }
    
    .restaurant-info {
        padding: 12px;
    }
}

/* Beaches Section */
.beaches-container {
    margin-top: 30px;
}

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

.beach-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.beach-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.beach-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.beach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.beach-info {
    padding: 15px;
}

.beach-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-color);
    line-height: 1.3;
}

.beach-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.beach-rating .rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.beach-rating .rating-number {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.beach-rating .rating-count {
    color: #666;
    font-size: 0.8rem;
}



.beach-address {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive Design for Beaches */
@media (max-width: 1200px) {
    .beaches-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .beaches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .beach-image {
        height: 180px;
    }
}

@media (max-width: 600px) {
    .beaches-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .beach-image {
        height: 200px;
    }
    
    .beach-info {
        padding: 12px;
    }
}

/* Map Popup Styles - matching search.php */
.place-popup, .restaurant-popup, .beach-popup {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.10), 0 1.5px 6px rgba(44,62,80,0.08);
    max-width: 420px;
    width: calc(100% - 40px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    border: none;
    padding: 0;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.place-popup.show, .restaurant-popup.show, .beach-popup.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-link {
    display: flex;
    flex-direction: row;
    width: 100%;
    text-decoration: none !important;
    color: #222 !important;
    background: transparent !important;
    border-radius: 16px;
    transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
    padding: 0;
    align-items: stretch;
}

.popup-link:visited, .popup-link:active, .popup-link:focus {
    color: #222 !important;
    background: transparent !important;
}

.popup-image-container {
    position: relative;
    width: 160px;
    min-width: 140px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 0;
    margin: 0;
    box-shadow: none;
    background: #f5f5f5;
    position: relative;
    z-index: 1;
}

.popup-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 16px 12px 16px;
    width: 100%;
}

.popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 0;
}

.popup-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.popup-description {
    color: #444;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.popup-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.popup-rating .stars {
    display: flex;
    gap: 2px;
}

.popup-rating .stars i {
    color: #ddd;
    font-size: 12px;
}

.popup-rating .stars i.filled {
    color: #ffc107;
}

.popup-rating span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.popup-type {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 4px;
    display: inline-block;
}

.popup-type.place {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.popup-type.restaurant {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.popup-address {
    color: #666;
    font-size: 11px;
    margin-top: auto;
}

/* Mobile responsive styles for map popups */
@media (max-width: 600px) {
    .place-popup, .restaurant-popup, .beach-popup {
        max-width: calc(100% - 16px);
        width: calc(100% - 16px);
        bottom: 8px;
        border-radius: 12px;
    }
    
    .popup-image-container {
        width: 90px;
        min-width: 90px;
        height: 80px;
    }
    
    .popup-content {
        padding: 8px 10px;
    }
    
    .popup-title {
        font-size: 12px;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .popup-rating {
        gap: 4px;
        margin-bottom: 2px;
    }
    
    .popup-rating .stars i {
        font-size: 10px;
    }
    
    .popup-rating span {
        font-size: 10px;
        font-weight: 500;
    }
    
    .popup-type {
        font-size: 9px;
        padding: 1px 5px;
        margin-bottom: 3px;
    }
    
    .popup-header {
        margin-bottom: 2px;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .place-popup, .restaurant-popup, .beach-popup {
        max-width: calc(100% - 12px);
        width: calc(100% - 12px);
        bottom: 6px;
    }
    
    .popup-image-container {
        width: 80px;
        min-width: 80px;
        height: 70px;
    }
    
    .popup-content {
        padding: 6px 8px;
    }
    
    .popup-title {
        font-size: 11px;
        line-height: 1.1;
    }
    
    .popup-rating span {
        font-size: 9px;
    }
    
    .popup-rating .stars i {
        font-size: 9px;
    }
    
    .popup-type {
        font-size: 8px;
        padding: 1px 4px;
    }
} 

/* Airports Grid Styles */
.airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.airport-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.airport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.airport-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.airport-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.airport-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.airport-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.airport-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.airport-rating .rating-stars {
    display: flex;
    gap: 2px;
}

.airport-rating .rating-stars i {
    color: #ffd700;
    font-size: 14px;
}

.airport-rating .rating-number {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.airport-rating .rating-count {
    color: #666;
    font-size: 12px;
}

.airport-address {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-top: auto;
}

/* Mobile responsive styles for airports */
@media (max-width: 768px) {
    .airports-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .airport-image {
        height: 150px;
    }
    
    .airport-info {
        padding: 15px;
    }
    
    .airport-name {
        font-size: 1.1rem;
    }
} 