/* Additional styles for components */

/* Main content area */
.site-main {
    padding: 0px 0;
}

/* Archive pages */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px;
    background: rgb(244, 241, 234);
    color: var(--text-dark, #2c2c2c);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
    font-family: 'Playfair Display', Georgia, serif;
}

.archive-description {
    font-size: 1rem;
    opacity: 0.7;
    font-family: 'Playfair Display', Georgia, serif;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    transition: var(--transition);
    font-family: 'Playfair Display', Georgia, serif;
}

.pagination a:hover {
    background-color: #2c2c2c;
    color: rgb(244, 241, 234);
    border-color: #2c2c2c;
}

.pagination .current {
    background-color: #2c2c2c;
    color: rgb(244, 241, 234);
    border-color: #2c2c2c;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Wave animation for hero sections */
.wave-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
}

/* Icons (you can replace with actual icon library) */
[class^="icon-"]::before {
    display: inline-block;
    margin-right: 5px;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--text-dark, #2c2c2c);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print,
    .site-header,
    .site-footer,
    .modal,
    .button {
        display: none !important;
    }
}

/* Contact Page */
.contact-page {
    padding: 80px 0;
}

.contact-page-nav {
    text-align: center;
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-lighter, #999);
    font-weight: 400;
}

.contact-page-nav span {
    display: inline;
}

.contact-page .entry-header {
    text-align: center;
    margin-bottom: 20px;
}

.contact-page .entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 20px;
    color: #2c2c2c;
    line-height: 1.2;
}

.contact-page .entry-subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-page .entry-subtitle strong {
    font-weight: 600;
}

.contact-page .entry-content {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.contact-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--text-dark, #2c2c2c);
    font-weight: 400;
    font-family: 'Playfair Display', Georgia, serif;
}

.feature-item svg {
    flex-shrink: 0;
    color: var(--text-dark, #333);
}

.contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px 80px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Contact Form Widget */
.surf-contact-form-widget {
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.surf-contact-form {
    width: 100%;
}

.surf-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
}

.surf-contact-form .form-group {
    margin-bottom: 40px;
}

.surf-contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    color: #2c2c2c;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'Playfair Display', Georgia, serif;
}

.surf-contact-form .required {
    display: none;
}

.surf-contact-form input[type="text"],
.surf-contact-form input[type="email"],
.surf-contact-form input[type="tel"],
.surf-contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    font-size: 15px;
    font-family: 'Playfair Display', Georgia, serif;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.surf-contact-form input:focus,
.surf-contact-form textarea:focus {
    border-bottom-color: #2c2c2c;
    outline: none;
    background: transparent;
}

.surf-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.surf-contact-form button[type="submit"] {
    background-color: #2c2c2c;
    color: rgb(244, 241, 234);
    padding: 15px 40px;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Playfair Display', Georgia, serif;
    width: 100%;
}

.surf-contact-form button[type="submit"]:hover {
    background-color: #1a1a1a;
}

.surf-contact-form button[type="submit"]:active {
    transform: translateY(0);
}

.contact-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.contact-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.contact-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Package Pricing Collapsible */
.package-pricing {
    margin-top: 40px;
}

.pricing-option {
    margin-bottom: 20px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #f8f9fa;
    transition: background-color 0.3s ease;
    user-select: none;
}

.pricing-header:hover {
    background: #e9ecef;
}

.pricing-header .room-name {
    margin: 0;
    flex: 1;
}

.pricing-header .room-name a {
    color: var(--text-dark, #2c2c2c);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.pricing-header .room-name a:hover {
    color: var(--text-light, #5a5a5a);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--text-dark, #2c2c2c);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pricing-option.active .pricing-toggle {
    transform: rotate(180deg);
}

.price-table {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.pricing-option.active .price-table {
    max-height: 1000px;
    padding: 0 20px 20px 20px;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.price-table thead th {
    background: var(--bg-light, #f8f9fa);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.price-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table .price {
    font-weight: 500;
    color: var(--text-dark, #2c2c2c);
    text-align: right;
    font-family: 'Playfair Display', Georgia, serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .surf-contact-form-widget {
        padding: 30px 20px;
    }
    
    .contact-page .entry-title {
        font-size: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 40px 30px;
    }
    
    .surf-contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .contact-page-nav {
        font-size: 10px;
    }
}

/* ========================================
   BOOKING CONFIRMATION MODAL STYLES
   ======================================== */

.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.confirmation-modal-content {
    background: #ffffff;
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    background: none;
    border: none;
    line-height: 1;
}

.confirmation-modal .modal-close:hover {
    color: #333;
}

/* Confirmation Header */
.confirmation-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 16px 16px 0 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon svg {
    stroke: #ffffff;
}

.confirmation-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 10px;
}

.confirmation-subtitle {
    color: #666;
    font-size: 15px;
    margin: 0 0 20px;
}

.reservation-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.id-label {
    color: #666;
    font-size: 13px;
}

.id-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    color: #2c2c2c;
    letter-spacing: 1px;
}

/* Booking Summary Printable */
.booking-summary-printable {
    padding: 30px;
}

.summary-header-print {
    margin-bottom: 25px;
}

.summary-header-print h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    color: #2c2c2c;
    margin: 0 0 8px;
}

.summary-header-print p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Summary Sections */
.summary-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.summary-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.summary-section h4 svg {
    color: #666;
}

.summary-details {
    display: grid;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 14px;
}

.total-row {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    margin: 15px -20px -20px;
    padding: 15px 20px !important;
    border-radius: 0 0 12px 12px;
    border-bottom: none !important;
}

.total-row .detail-label {
    font-weight: 600;
    color: #2e7d32;
}

.total-row .detail-value {
    color: #2e7d32;
    font-size: 18px;
    font-weight: 700;
}

/* Availability Section */
.availability-section {
    background: transparent;
    padding: 0;
}

.availability-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    color: #2e7d32;
    font-weight: 500;
}

.availability-badge svg {
    flex-shrink: 0;
}

/* Next Steps Section */
.next-steps-section {
    background: #fff8e1;
}

.next-steps-content {
    line-height: 1.7;
}

.response-time {
    margin: 0 0 20px;
    color: #333;
    font-size: 14px;
}

.email-notice {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #ff9800;
}

.email-notice svg {
    flex-shrink: 0;
    color: #ff9800;
    margin-top: 2px;
}

.email-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.email-notice ul {
    margin: 0;
    padding-left: 18px;
    color: #666;
    font-size: 13px;
}

.email-notice li {
    margin-bottom: 4px;
}

.payment-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
    color: #e65100;
    font-size: 13px;
    font-weight: 500;
}

.payment-notice svg {
    flex-shrink: 0;
}

/* Modify Section */
.modify-section {
    background: #e3f2fd;
}

.modify-notice h5 {
    font-size: 14px;
    color: #1565c0;
    margin: 0 0 8px;
}

.modify-notice p {
    margin: 0;
    color: #1976d2;
    font-size: 13px;
    line-height: 1.6;
}

/* Confirmation Actions */
.confirmation-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px 30px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.confirmation-actions button {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-print {
    background: #2c2c2c;
    color: #ffffff;
}

.btn-print:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.btn-new-booking {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50 !important;
}

.btn-new-booking:hover {
    background: #c8e6c9;
}

.btn-close-confirmation {
    background: #f5f5f5;
    color: #666;
}

.btn-close-confirmation:hover {
    background: #e0e0e0;
    color: #333;
}

/* Responsive Styles for Confirmation Modal */
@media (max-width: 600px) {
    .confirmation-modal {
        padding: 10px;
    }

    .confirmation-modal-content {
        border-radius: 12px;
        max-height: 95vh;
    }

    .confirmation-header {
        padding: 30px 20px 25px;
    }

    .confirmation-header h2 {
        font-size: 22px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon svg {
        width: 40px;
        height: 40px;
    }

    .reservation-id-badge {
        flex-direction: column;
        gap: 4px;
        padding: 10px 15px;
    }

    .booking-summary-printable {
        padding: 20px;
    }

    .summary-section {
        padding: 15px;
    }

    .summary-section h4 {
        font-size: 14px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .total-row {
        flex-direction: row !important;
        align-items: center !important;
    }

    .confirmation-actions {
        flex-direction: column;
        padding: 15px 20px 25px;
    }

    .confirmation-actions button {
        width: 100%;
    }

    .email-notice {
        flex-direction: column;
    }
}

/* Print Styles for Confirmation */
@media print {
    .confirmation-modal {
        position: static;
        background: none;
        padding: 0;
    }

    .confirmation-modal-content {
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .confirmation-header {
        background: none;
        border-bottom: 2px solid #333;
    }

    .success-icon {
        display: none;
    }

    .confirmation-actions {
        display: none;
    }

    .modal-close {
        display: none;
    }
}

/* ========================================
   PHONE INPUT & SEARCHABLE SELECT STYLES
   ======================================== */

.phone-input-wrapper {
    display: flex;
    gap: 8px;
}

/* Searchable Select Component */
.searchable-select {
    position: relative;
    flex-shrink: 0;
}

.phone-code-searchable {
    width: 130px;
}

.country-searchable {
    width: 100%;
}

.searchable-selected {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 42px;
}

.searchable-selected:hover {
    border-color: #bbb;
}

.searchable-select.open .searchable-selected {
    border-color: #2c2c2c;
    box-shadow: 0 0 0 2px rgba(44, 44, 44, 0.1);
}

.selected-flag {
    font-size: 18px;
    line-height: 1;
}

.selected-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-value.placeholder {
    color: #999;
}

.dropdown-arrow {
    color: #666;
    transition: transform 0.2s;
}

.searchable-select.open .dropdown-arrow {
    transform: rotate(180deg);
}

.searchable-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.searchable-select.open .searchable-dropdown {
    display: block;
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.searchable-input {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    outline: none;
    background: #f8f9fa;
}

.searchable-input::placeholder {
    color: #999;
}

.searchable-options {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.searchable-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.searchable-option:hover,
.searchable-option.highlighted {
    background: #f0f0f0;
}

.option-flag {
    font-size: 20px;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.option-country {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.option-code {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Phone input field */
.phone-input-wrapper input[type="tel"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 0;
}

.phone-input-wrapper input[type="tel"]:focus {
    border-color: #2c2c2c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(44, 44, 44, 0.1);
}

/* Optional label styling */
.form-group label .optional {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

/* Scrollbar styling for dropdown */
.searchable-options::-webkit-scrollbar {
    width: 6px;
}

.searchable-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.searchable-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.searchable-options::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Responsive styles */
@media (max-width: 480px) {
    .phone-input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .phone-code-searchable {
        width: 100%;
    }
    
    .searchable-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
    }
    
    .searchable-options {
        max-height: calc(60vh - 60px);
    }
    
    .searchable-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .searchable-option {
        padding: 12px 16px;
    }
}

