/* Detail Page Styles - Extracted from accommodation_details.php and accommodation_details_sc.php */

/* Layout and Container Styles */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.detail-navigation {
    max-width: 1200px;
    margin: 5px;
    padding: 3px 10px 3px 0px;
}

.detail-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

.detail-heading {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

.detail-location {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

.detail-price {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

/* Content Box Styles */
.content-box {
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.06), 0 0 8px rgba(0, 0, 0, 0.04);
}

.content-box-spaced {
    margin-top: 30px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.06), 0 0 8px rgba(0, 0, 0, 0.04);
}

/* Section Padding */
.section-padding {
    padding-bottom: 10px;
}

.section-padding-top {
    padding-bottom: 10px;
    padding-top: 30px;
}

/* Image Gallery */
.image-gallery {
    margin: 0;
    width: 100%;
    padding: 0;
}

/* Price Styles */
.price-large {
    font-size: 24px;
    color: #1e3a8a;
    font-weight: bold;
}

.price-small {
    font-size: 0.9em;
    color: #333;
    font-weight: 400;
    margin-left: 4px;
}

/* Contact Section */
.contact-section {
    margin-top: 30px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.06), 0 0 8px rgba(0, 0, 0, 0.04);
    background-color: rgb(15, 32, 87);
}

.contact-title {
    color: white;
}

.contact-form-bg {
    background-color: rgb(15, 32, 87);
}

.contact-info-text {
    color: white;
}

.contact-info-small {
    font-size: 11px;
}

/* Form Styles */
.country-search {
    background-color: #d1d5db;
}

.send-button {
    background-color: rgb(255, 69, 0);
}

.send-button:hover {
    background-color: rgb(255, 100, 30);
}

/* Form Validation Styles */
.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message.hidden {
    display: none !important;
}

.error-message svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.field-container {
    position: relative;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 95vw;
    max-width: 1200px;
    height: 90vh;
    max-height: 800px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

/* Modal Animations */
.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content.show {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Share Popup Styles */
.share-popup-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

.share-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.share-button-facebook {
    background: #1877f2;
}

.share-button-whatsapp {
    background: #25d366;
}

.share-button-messenger {
    background: #0084ff;
}

.share-button-telegram {
    background: #0088cc;
}

.share-button-botim {
    background: #ff6b35;
    grid-column: 1 / -1;
}

.share-button-close {
    padding: 10px 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.share-button i {
    margin-right: 8px;
}

/* Ad Styles */
.ad-container {
    display: block;
}

/* Navigation Button Styles */
.nav-button {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 9999px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-button:hover {
    background-color: #e5e7eb;
}

.nav-button i {
    margin-right: 8px;
}

.nav-button-back {
    color: #2563eb;
}

.nav-button-share {
    color: #374151;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 98vw;
        height: 95vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 10px 12px;
    }
    
    .modal-title {
        font-size: 14px;
    }
}

/* Utility Classes */
.clear-both {
    clear: both;
}

.margin-top-negative {
    margin-top: -10px;
}

.margin-bottom-small {
    margin-bottom: 10px;
}

.padding-small {
    padding: 1px 0;
}

.padding-bottom-small {
    padding-bottom: 2px;
}

/* Back to Results Button */
.back-button-container {
    margin: 20px 5px;
}
