/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header styles */
.site-header {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    padding: 0.25rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.25rem;
}

.site-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
}

/* Container and grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 0.5rem;
}

/* Card styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: #007cba;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card h3 a {
    color: inherit;
    text-decoration: none;
}

.card h3 a:hover {
    text-decoration: underline;
}

.card img {
    width: 100%;
    height: auto;
    max-height:400px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block; /* Remove extra space below image */
}
.card p {
    margin-bottom: 1rem;
    color: #555;
}

.card strong {
    color: #333;
}

/* Links */
.sub-link {
    display: inline-block;
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
}

.sub-link:hover {
    text-decoration: underline;
}

/* Map iframe */
.card iframe {
    border-radius: 8px;
    margin: 1rem 0;
}

/* Form styles */
.card form {
    background: #f8f9fa;
    padding: 0.05rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    border: 1px solid #e9ecef;
}

.card label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.card input[type="text"],
.card input[type="email"],
.card textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    margin-bottom: 0.75rem;
}

.card input[type="text"]:focus,
.card input[type="email"]:focus,
.card textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.card textarea {
    resize: vertical;
    min-height: 70px;
}

/* Fixed Button Styles - Single Definition */
.card button {
    background: #280bcf; /* Your chosen color */
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%; /* Fixed syntax error */
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(40, 11, 207, 0.25);
    position: relative;
    overflow: hidden;
}

.card button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.card button:hover::before {
    left: 100%;
}

.card button:hover {
    background: #1f09a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 11, 207, 0.35);
}

/* Star rating styles - FIXED */
.star-rating {
    font-size: 24px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 0.75rem;
    user-select: none;
}

.star {
    color: #ddd; /* Default gray */
    transition: color 0.2s ease;
    padding: 0 2px;
    cursor: pointer;
    display: inline-block;
}

/* Hover state - all stars up to the hovered one */
.star.hover {
    color: #ffb300 !important;
}

/* Selected state - all stars up to the selected one */
.star.selected {
    color: #ffa500 !important;
}

/* Add some spacing between stars */
.star-rating .star {
    margin-right: 2px;
}

/* Fix form padding */
.card form {
    background: #f8f9fa;
    padding: 1rem; /* Changed from 0.05rem to proper padding */
    border-radius: 8px;
    margin: 0.5rem 0;
    border: 1px solid #e9ecef;
}
/* ULTRA COMPACT REVIEW BOX - Option #2 */
.review-box {
    margin-top: 12px !important;
    padding: 0.6rem !important;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.review-scroll {
    max-height: 150px !important;
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
}

.review-item {
    padding: 0.3rem !important;
    margin-bottom: 3px !important;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #007cba;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    min-height: 60px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-box h4 {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
    padding-bottom: 0.3rem !important;
    color: #007cba;
    border-bottom: 2px solid #007cba;
}

.review-item strong {
    font-size: 1em !important;
    color: #ffa500;
    display: block;
    margin-bottom: 2px !important;
}

.review-item em {
    font-size: 0.85em !important;
    margin-bottom: 4px !important;
    color: #666;
    display: block;
}

.review-item p {
    margin: 0 !important;
    line-height: 1.3 !important;
    color: #333;
    font-size: 0.9em !important;
    flex-grow: 1;
}

.scroll-indicator {
    text-align: center;
    padding: 6px 8px !important;
    background: linear-gradient(135deg, #e8f4fd, #d4edfd);
    border-radius: 4px;
    margin-bottom: 8px !important;
    font-size: 0.8em !important;
    color: #007cba;
    border: 1px solid #b3d9f2;
    font-weight: 500;
}

/* Custom scrollbar */
.review-scroll::-webkit-scrollbar {
    width: 6px;
}

.review-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.review-scroll::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 3px;
}

.review-scroll::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}

.review-scroll {
    scrollbar-width: thin;
    scrollbar-color: #007cba #f1f1f1;
}

.review-scroll::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}

.review-scroll {
    scrollbar-width: thin;
    scrollbar-color: #007cba #f1f1f1;
}

/* Back link */
a[href="index.php"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    margin: 1rem 0;
}

a[href="index.php"]:hover {
    background: #5a6268;
}

/* No reviews message */
.review-box > p:last-child {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 6px;
    border: 1px dashed #ddd;
    margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .places-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .site-header h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .review-scroll {
        max-height: 220px;
    }
    
    .review-item {
        padding: 0.75rem;
        margin-bottom: 10px;
        min-height: 90px;
    }
    
    .star-rating {
        font-size: 18px;
    }
    
    .review-box {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 1.5rem 0;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .site-header h1 {
        font-size: 1.5rem;
    }
    
    .card form {
        padding: 1rem;
    }
    
    .review-scroll {
        max-height: 200px;
    }
    
    .review-item {
        min-height: 80px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* AGGRESSIVE FORM SPACING REDUCTION - Option #3 */
.compact-form {
    margin-top: 5px !important;
    padding: 0.8rem !important;
}

.compact-form label {
    display: block;
    margin-bottom: 1px !important;
    font-weight: 600;
    color: #333;
    font-size: 0.85em !important;
}

.compact-form input[type="text"],
.compact-form input[type="email"],
.compact-form textarea {
    width: 100%;
    padding: 4px 6px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
    margin-bottom: 4px !important;
    box-sizing: border-box;
}

.compact-form .star-rating {
    font-size: 20px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 4px !important;
    user-select: none;
}

.compact-form textarea {
    resize: vertical;
    min-height: 60px;
    margin-bottom: 6px !important;
}

.compact-form button {
    margin-top: 6px !important;
    padding: 5px 10px !important;
    font-size: 0.85rem;
}