/* General Styles */
:root {

    --secondary-color: #f97316;
    --secondary-hover: #ea580c;
    --text-color: #333333;
    --text-color-muted: #666666;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-medium: #f1f5f9;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
}





.containerDetails {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

ul {
    list-style-position: inside;
}

/* Page Title */
.page-title {
    text-align: center;
    font-size: 1.8rem;
    color: #000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary-light);
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-details {
    flex: 1 1 65%;
    min-width: 0;
}

.sidebar-details {
    flex: 1 1 30%;
    min-width: 300px;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.main-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.image-zoom-icon:hover {
    background: rgba(255, 255, 255, 0.95);
}

.image-zoom-icon i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.thumbnails-row {
    display: flex;
    overflow-x: auto;
    padding: 1rem;
    gap: 0.5rem;
    background-color: white;
}

.thumbnail {
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Basic Information */
.basic-info {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    flex: 1;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: white;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    color: #e11d48;
    border-color: #e11d48;
}

.btn-share:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.product-short-desc {
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
}

.key-details {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.key-detail-item {
    display: flex;
    margin-bottom: 0.8rem;
    align-items: center;
}

.key-detail-item:last-child {
    margin-bottom: 0;
}

.key-label {
    min-width: 120px;
    color: var(--text-color-muted);
    display: flex;
    align-items: center;
}

.key-label i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.key-value {
    font-weight: 500;
}

.badge-success, .badge-primary {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d1fae5;
    color: #047857;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.product-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.price-unit {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-color-muted);
}

.product-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-primary, .btn-outline {
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

.btn-outline {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-book-visit, .btn-contact-seller {
    flex: 1;
}
.btn-book-visit:hover{
    background-color: #047857;
}
.btn-book-visit i, .btn-contact-seller i {
    margin-left: 0.5rem;
}

.quantity-container {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quantity-container label {
    font-weight: 500;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-decrease, .quantity-increase {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.quantity-decrease:hover, .quantity-increase:hover {
    background-color: var(--bg-medium);
}

#quantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
}

.product-actions-large {
    margin-top: 1rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: var(--primary-light);
}

.btn-add-to-cart i {
    font-size: 1.1rem;
}

/* Seller Card */
.seller-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.seller-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 1rem;
    border: 2px solid var(--primary-light);
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.seller-agency {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 0.5rem;
}

.seller-rating {
    display: flex;
    align-items: center;
}

.seller-rating i {
    color: #f59e0b;
    margin-left: 0.2rem;
}

.seller-rating span {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color-muted);
}

.seller-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-contact, .btn-message {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white;
    border: none;
    text-decoration: none;
}

.btn-contact:hover {
    background-color: var(--primary-light);
}

.btn-message {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-message:hover {
    background-color: var(--primary-light);
}

.btn-contact i, .btn-message i {
    margin-left: 0.5rem;
}

/* Map Section */
.map-section {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.map-container {
    height: 250px;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-map {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background-color: var(--primary-light);
}

.btn-map i {
    margin-left: 0.5rem;
}

/* Details Tabs */
.details-tabs {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-button {
    padding: 1rem 1.5rem;
    background-color: transparent;
    border: none;
    font-weight: 500;
    color: var(--text-color-muted);
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: var(--text-color);
    background-color: var(--bg-light);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--primary-light);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.details-content h3, .amenities-content h3, .proximity-content h3, .reviews-content h3 {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

.details-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.details-content ul {
    margin-bottom: 1rem;
    padding-right: 1rem;
}

.details-content ul li {
    margin-bottom: 0.3rem;
}

/* Amenities Section */
.amenities-group {
    margin-bottom: 1.5rem;
}

.amenities-group h4 {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.amenities-list {
    list-style: none;
    padding-right: 0.5rem;
}

.amenities-list li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
}

.amenities-list li.available i {
    color: #10b981;
}

.amenities-list li.not-available i {
    color: #ef4444;
}

.amenities-list li i {
    margin-left: 0.7rem;
    font-size: 1.1rem;
}

/* Proximity Section */
.proximity-list {
    list-style: none;
}

.proximity-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.proximity-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.proximity-list li i {
    font-size: 1.2rem;
    margin-left: 1rem;
    color: var(--primary-color);
    background-color: var(--primary-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.proximity-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.proximity-name {
    font-weight: 500;
}

.proximity-distance {
    background-color: var(--bg-light);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

/* Reviews Section */
.reviews-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.total-reviews {
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

.rating-breakdown {
    flex: 1;
    min-width: 200px;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-label {
    width: 60px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--bg-medium);
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #f59e0b;
}

.rating-count {
    width: 30px;
    text-align: right;
    color: var(--text-color-muted);
}

.reviews-list {
    margin-bottom: 2rem;
}

.review-item {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.reviewer-info {
    display: flex;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 1rem;
}

.reviewer-details {
    flex: 1;
}

.reviewer-details h4 {
    margin-bottom: 0.3rem;
}

.reviewer-rating {
    color: #f59e0b;
    margin-bottom: 0.2rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-color-muted);
}

.review-content p {
    color: var(--text-color);
    line-height: 1.7;
}

.review-form {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.review-form h3 {
    margin-bottom: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.rating-stars-input {
    display: flex;
    gap: 0.3rem;
    font-size: 1.5rem;
    color: #d1d5db;
}

.rating-stars-input i {
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars-input i.active, .rating-stars-input i:hover {
    color: #f59e0b;
}

input[type="text"], textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Tajawal', sans-serif;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

/* Similar Lands Section */
.similar-lands {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.similar-lands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.similar-land-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.similar-land-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.similar-land-image {
    height: 160px;
    position: relative;
}

.similar-land-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-land-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.badge-new {
    background-color: #10b981;
}

.badge-featured {
    background-color: var(--secondary-color);
}

.similar-land-details {
    padding: 1rem;
}

.similar-land-details h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.similar-land-location {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-bottom: 0.7rem;
}

.similar-land-location i {
    margin-left: 0.4rem;
    color: var(--primary-color);
}

.similar-land-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.similar-land-features span {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-color);
}

.similar-land-features span i {
    margin-left: 0.3rem;
    color: var(--primary-color);
}

.similar-land-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-image-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .product-cta {
        flex-direction: column;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .similar-lands-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 250px;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 auto;
        padding: 0.8rem 1rem;
        text-align: center;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .similar-lands-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-actions {
        align-self: flex-end;
    }
}
