/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Ubuntu", sans-serif;
    color: #524D4C;
}

body {
    color: #222;
    line-height: 1.5;
    background-color: #ffffff;
    padding-top: 80px; /* Added to account for fixed header */
}

/* CSS Variables for consistency */
:root {
    --primary: #E61E4D;
    --primary-dark: #C2174F;
    --background: #ffffff;
    --background-light: #f7f7f7;
    --border: #dddddd;
    --border-light: #ebebeb;
    --text-dark: #222222;
    --text-light: #717171;
    --shadow: 0 2px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--background);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 21px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    width: 200px;
    height: 80px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 22px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background-color: var(--background-light);
}

/* Enhanced Login/Register Button */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(255, 56, 92, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 56, 92, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #C2174F 100%);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
}

/* Main content styles */
main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.property-title {
    font-size: 30px;
    margin: 24px 0 4px;
    font-style: normal;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.rating-info i {
    color: #FF385C;
}

.property-actions {
    display: flex;
    gap: 16px;
    font-weight: 500;
}

/* Property images grid */
.property-images {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 440px;
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden;
}

.main-image {
    grid-row: 1 / span 2;
    background-color: #ddd;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-2, .image-3, .image-4, .image-5 {
    background-color: #eee;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.show-all-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.show-all-btn:hover {
    background: #f7f7f7;
    transform: translateY(-1px);
}

/* Property details layout */
.property-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    margin-bottom: 48px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.property-highlights h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.property-highlights p {
    color: var(--text-light);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenities-preview, .amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.amenity-icon {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.amenity-icon i {
    color: var(--primary);
}

.property-description-text {
    margin: 24px 0;
    line-height: 1.6;
    color: var(--text-dark);
}

.sleeping-arrangement {
    margin: 32px 0;
}

.bedroom-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    width: 160px;
    text-align: center;
}

.host-info {
    display: flex;
    gap: 16px;
    margin: 32px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ddd;
    overflow: hidden;
}

.host-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.contact-host-btn {
    background: white;
    border: 1px solid var(--text-dark);
    border-radius: 8px;
    padding: 12px 24px;
    margin-top: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-host-btn:hover {
    background: var(--text-dark);
    color: white;
}

.reviews-section {
    margin: 32px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.review-item {
    margin: 24px 0;
    padding: 16px 0;
}

.reviewer {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
}

.reviewer-name {
    font-weight: 500;
    color: var(--text-dark);
}

.review-date {
    color: var(--text-light);
    font-size: 14px;
}

.review-text p {
    line-height: 1.6;
    color: var(--text-dark);
}

.location-section {
    margin: 32px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.map-container {
    position: relative;
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.map-placeholder {
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.map-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rules-section, .cancellation-policy {
    margin: 32px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.rules-list {
    margin-left: 20px;
    margin-top: 8px;
}

.rules-list li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.policy-type {
    font-weight: 500;
    margin: 8px 0;
    color: var(--text-dark);
}

.policy-description {
    color: var(--text-light);
    margin-bottom: 8px;
}

.show-more {
    text-decoration: underline;
    font-weight: 500;
    margin-top: 8px;
    cursor: pointer;
    color: var(--primary);
}

/* Booking card styles */
.booking-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
    background: white;
    height: fit-content;
}

.booking-card .price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.booking-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

.booking-card .rating-info {
    margin-bottom: 16px;
}

.date-selector {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 16px 0;
    overflow: hidden;
}

.date-row {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.date-row:last-child {
    border-bottom: none;
}

.date-cell {
    flex: 1;
    padding: 12px;
    background: white;
}

.date-cell:first-child {
    border-right: 1px solid var(--border);
}

.date-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.date-input, .guests-select {
    width: 100%;
    border: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-dark);
    font-family: inherit;
}

.date-input:focus, .guests-select:focus {
    outline: none;
}

.full-width {
    grid-column: 1 / -1;
}

.guests-select {
    padding: 0;
    cursor: pointer;
    appearance: none;
    background: transparent;
}

.reserve-btn {
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.reserve-btn:hover {
    background: linear-gradient(to right, var(--primary-dark), #B81245);
    transform: translateY(-1px);
}

.no-charge-notice {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.price-breakdown, .price-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: var(--text-dark);
}

.price-breakdown {
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.price-total {
    font-weight: 600;
    font-size: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Footer styles */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    background: var(--primary);
    margin-top: 60px;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h3 {
    margin-bottom: 16px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 24px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    color: white;
    background: rgba(0,0,0,0.8);
    z-index: 10;
}

.modal-count {
    font-size: 14px;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    z-index: 5;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.05);
}

.modal-prev {
    left: 24px;
}

.modal-next {
    right: 24px;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: rgba(0,0,0,0.8);
    overflow-x: auto;
    justify-content: center;
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.modal-thumbnail:hover {
    opacity: 0.8;
}

.modal-thumbnail.active {
    opacity: 1;
    border: 2px solid white;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-menu {
        display: none; /* Hide menu on mobile, you might want a hamburger menu */
    }
    
    .property-images {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 150px 150px;
        height: auto;
    }
    
    .main-image {
        grid-row: 1;
    }
    
    .property-details {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .booking-card {
        position: static;
        margin-top: 32px;
    }
    
    .amenities-preview, .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .property-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .host-info {
        flex-direction: column;
        text-align: center;
    }
    
    .host-stats {
        justify-content: center;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .property-title {
        font-size: 22px;
    }
    
    .property-images {
        grid-template-rows: 250px 120px 120px;
    }
}

/* Reviews and Rating Section Styles */
.reviews-ratings-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.add-review-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.add-review-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.review-form {
    max-width: 600px;
}

.rating-input {
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.star-rating {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating:hover,
.star-rating.active {
    color: #FF385C;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #717171;
    margin-top: 5px;
}

.review-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
}

.review-textarea:focus {
    outline: none;
    border-color: #FF385C;
    box-shadow: 0 0 0 2px rgba(255, 56, 92, 0.1);
}

.review-submit-btn {
    background: #FF385C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-submit-btn:hover:not(:disabled) {
    background: #E61E4D;
    transform: translateY(-1px);
}

.review-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.login-prompt {
    text-align: center;
    padding: 20px;
}

.login-btn {
    background: #FF385C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #E61E4D;
    transform: translateY(-1px);
}

/* Reviews and Rating Section Styles - IMPROVED */
.reviews-ratings-section {
    margin: 40px 0;
    padding: 0;
    background: transparent;
}

.add-review-section {
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
}

.add-review-section h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
    font-family: 'Inter', sans-serif;
}

.review-form {
    max-width: 100%;
}

.rating-input {
    margin-bottom: 25px;
}

.rating-stars {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.star-rating {
    font-size: 28px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.star-rating:hover,
.star-rating.active {
    color: #FF385C;
    transform: scale(1.1);
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #717171;
    margin-top: 8px;
    font-weight: 500;
}

/* Improved Reviewer Info Fields */
.reviewer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.reviewer-info .form-group {
    margin-bottom: 0;
}

.reviewer-info label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #222;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.reviewer-info .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.reviewer-info .form-control:focus {
    outline: none;
    border-color: #FF385C;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
    background: #fafafa;
}

.reviewer-info .form-control:hover {
    border-color: #b0b0b0;
}

/* Improved Textarea */
.review-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.review-textarea:focus {
    outline: none;
    border-color: #FF385C;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
    background: #fafafa;
}

.review-textarea:hover {
    border-color: #b0b0b0;
}

/* Improved Submit Button */
.review-submit-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#char-count {
    color: #717171;
    font-size: 13px;
    font-weight: 500;
}

.review-submit-btn {
    background: linear-gradient(135deg, #FF385C, #E61E4D);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
}

.review-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.4);
    background: linear-gradient(135deg, #E61E4D, #C2174F);
}

.review-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Improved Reviews Summary */
.existing-reviews {
    margin-top: 0;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.average-rating {
    text-align: center;
    min-width: 120px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #222;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.rating-stars-large {
    display: flex;
    gap: 2px;
    margin: 8px 0;
    justify-content: center;
}

.rating-stars-large .star-rating {
    font-size: 16px;
    color: #FF385C;
}

.total-reviews {
    color: #717171;
    font-size: 14px;
    font-weight: 500;
}

.rating-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.rating-label {
    width: 70px;
    color: #717171;
    font-weight: 500;
}

.rating-bar-line {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF385C, #E61E4D);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-count {
    width: 30px;
    text-align: right;
    color: #717171;
    font-weight: 500;
}

/* Improved Review Items */
.review-item {
    padding: 24px 0;
    border-bottom: 1px solid #f8f8f8;
    transition: background-color 0.3s ease;
}

.review-item:hover {
    background: #fafafa;
    margin: 0 -20px;
    padding: 24px 20px;
    border-radius: 8px;
}

.review-item:last-child {
    border-bottom: none;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF385C, #E61E4D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
}

.reviewer-name {
    font-weight: 600;
    color: #222;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.review-date {
    color: #717171;
    font-size: 14px;
    margin-top: 4px;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-rating .star-rating {
    font-size: 16px;
    color: #FF385C;
}

.review-text {
    color: #222;
    line-height: 1.6;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.review-text p {
    margin: 0;
}

/* Improved No Reviews State */
.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #717171;
}

.no-reviews-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.no-reviews h4 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.no-reviews p {
    font-size: 15px;
    margin-bottom: 0;
}

/* Improved Pagination */
.reviews-pagination {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pagination-info {
    color: #717171;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #222;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.pagination-btn:hover:not(.active) {
    background: #f8f8f8;
    border-color: #b0b0b0;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FF385C, #E61E4D);
    color: white;
    border-color: #FF385C;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .add-review-section,
    .existing-reviews {
        padding: 20px;
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .reviewer-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review-summary {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .rating-bars {
        width: 100%;
    }
    
    .reviews-pagination {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .review-item:hover {
        margin: 0 -10px;
        padding: 20px 10px;
    }
    
    .star-rating {
        font-size: 24px;
    }
}

/* Loading State */
.loading-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #717171;
}

.loading-reviews i {
    font-size: 24px;
    margin-bottom: 16px;
    color: #FF385C;
}

/* social sharing-----------*/
.share-container {
    position: relative;
    display: inline-block;
}

.share-toggle {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-toggle:hover {
    background: #e8f0fe;
    border-color: #4285f4;
    color: #4285f4;
}

.share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 16px;
    width: 200px;
    z-index: 1000;
    margin-top: 8px;
}

.share-platforms {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-btn.copy-link:hover {
    background: #34a853;
    color: white;
    border-color: #34a853;
}

.share-btn i {
    width: 16px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Notification */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #34a853;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .share-menu {
        left: 50%;
        transform: translateX(-50%);
    }
}