/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Container */
.cafe-detail-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0;
    background-color: transparent;
}

/* Cafe Header Section */
.cafe-header {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 40px;
    align-items: center;
}

.cafe-profile-image {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cafe-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cafe-profile-image:hover img {
    transform: scale(1.05);
}

.cafe-header-info {
    flex: 1;
}

.cafe-header-info h1 {
    color: #ab8663;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cafe-rating-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cafe-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cafe-rating i {
    color: #FFD700;
    font-size: 1.2rem;
}

.rating-value {
    color: #ab8663;
    font-weight: 600;
    font-size: 1.3rem;
    margin-left: 5px;
}

.review-count {
    color: #666;
    font-size: 1rem;
}

.cafe-location-info,
.cafe-contact-info,
.cafe-hours-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #555;
    font-size: 1rem;
}

.cafe-location-info i,
.cafe-contact-info i,
.cafe-hours-info i {
    color: #ab8663;
    width: 20px;
    text-align: center;
}

.cafe-contact-info a {
    color: #ab8663;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cafe-contact-info a:hover {
    color: #8a6a4f;
    text-decoration: underline;
}

/* Cafe Gallery Section - Redesigned */
.cafe-gallery-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.cafe-gallery-section h2 {
    color: #ab8663;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.cafe-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background-color: transparent;
}

.thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

/* Cafe Details Grid */
.cafe-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Facilities Section - Redesigned */
.facilities-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.facilities-section h2 {
    color: #ab8663;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.facilities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: #faf8f5;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f0ebe5;
}

.facility-item:hover {
    background-color: #f5f0e8;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(171, 134, 99, 0.15);
}

.facility-item i {
    color: #ab8663;
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.facility-item span {
    color: #5d5348;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Menu Section - Redesigned */
.menu-images-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.menu-images-section h2 {
    color: #ab8663;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.menu-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 0;
}

.menu-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.menu-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-image:hover img {
    transform: scale(1.1);
}

.menu-image::after {
    content: 'MENU';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(171, 134, 99, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Location Section - Redesigned */
.location-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.location-section h2 {
    color: #ab8663;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

#map {
    height: 450px;
    width: 100%;
    border-radius: 15px;
    margin-top: 0;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reviews Section - Redesigned */
.reviews-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.reviews-section h2 {
    color: #ab8663;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.add-review-btn-container {
    text-align: center;
    margin-bottom: 30px;
}

.add-review-btn {
    background: linear-gradient(135deg, #ab8663 0%, #c79a65 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 134, 99, 0.3);
}

.reviews-container {
    display: grid;
    gap: 20px;
}

.review-card {
    border: 1px solid #f0ebe5;
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #faf8f5;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(171, 134, 99, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.review-user i {
    color: #ab8663;
    font-size: 1.5rem;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #FFD700;
    font-size: 1rem;
}

.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-date {
    color: #999;
    font-size: 0.85rem;
    text-align: right;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-reviews i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.no-reviews p {
    font-size: 1.1rem;
}

/* Modal Improvements */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h2 {
    color: #ab8663;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
}

.close-btn:hover {
    color: #ab8663;
    background: #f0e6dd;
    transform: rotate(90deg);
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: #faf8f5;
    border-radius: 15px;
    border: 2px solid #f0ebe5;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2.5 rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.star-rating label:hover {
    color: #f9ca24;
    transform: scale(1.2);
}

.star-rating label:hover ~ label {
    color: #f9ca24;
}

.star-rating input:checked ~ label {
    color: #f9ca24;
}

/* Form Group */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0d5c8;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    background: #fafafa;
}

.form-group textarea:focus {
    outline: none;
    border-color: #ab8663;
    box-shadow: 0 0 0 4px rgba(171, 134, 99, 0.15);
    background: white;
}

/* Submit Button */
.submit-review-btn {
    background: linear-gradient(135deg, #ab8663 0%, #c79a65 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(171, 134, 99, 0.3);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: white;
    transform: rotate(90deg);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cafe-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cafe-profile-image {
        width: 250px;
        height: 250px;
    }
    
    .cafe-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cafe-detail-container {
        margin: 80px auto 30px;
        padding: 0 15px;
    }
    
    .cafe-header {
        padding: 30px 25px;
        gap: 30px;
    }
    
    .cafe-header-info h1 {
        font-size: 2rem;
    }
    
    .cafe-profile-image {
        width: 200px;
        height: 200px;
    }
    
    .cafe-images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .menu-images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .facilities-list {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 350px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 25px;
    }
    
    .star-rating {
        gap: 10px;
        padding: 20px;
    }
    
    .star-rating label {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cafe-header {
        padding: 25px 20px;
    }
    
    .cafe-header-info h1 {
        font-size: 1.8rem;
    }
    
    .cafe-profile-image {
        width: 180px;
        height: 180px;
    }
    
    .rating-value {
        font-size: 1.1rem;
    }
    
    .cafe-location-info,
    .cafe-contact-info,
    .cafe-hours-info {
        font-size: 0.9rem;
    }
    
    .cafe-gallery-section,
    .facilities-section,
    .menu-images-section,
    .location-section,
    .reviews-section {
        padding: 25px 20px;
    }
    
    .cafe-gallery-section h2,
    .facilities-section h2,
    .menu-images-section h2,
    .location-section h2,
    .reviews-section h2 {
        font-size: 1.5rem;
    }
    
    .cafe-images-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .menu-images-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    #map {
        height: 300px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 25px 20px;
    }
    
    .star-rating label {
        font-size: 1.8rem;
    }
}