/* WP Tours Booking Styles - Premium Dark & Gold V4 */

:root {
    --wtb-primary: var(--color-cta, #d4af37); /* Metallic Gold */
    --wtb-primary-hover: #b4941f;
    --wtb-bg-dark: var(--color-secondary, #1a1a1a);
    --wtb-bg-darker: var(--color-primary, #121212);
    --wtb-text-light: var(--color-background, #f4f4f4);
    --wtb-text-muted: #a0aec0;
    --wtb-border: rgba(212, 175, 55, 0.2); /* Gold border */
    --wtb-shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --wtb-shadow-hover: 0 20px 25px -5px rgba(212, 175, 55, 0.15), 0 10px 10px -5px rgba(212, 175, 55, 0.1);
}

.wtb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--wtb-text-light);
}

/* Single Tour */
.wtb-single-tour .entry-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
}

.wtb-single-tour .entry-title {
    font-size: 2.5rem;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--wtb-primary);
    letter-spacing: -0.02em;
}

.wtb-tour-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--wtb-text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.wtb-tour-meta-header i {
    color: var(--wtb-primary);
    margin-right: 4px;
}

.wtb-tour-gallery {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--wtb-shadow-soft);
    border: 1px solid var(--wtb-border);
    background: #000;
}

.wtb-main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Asymmetric Gallery (Airbnb style) */
.wtb-tour-gallery-asymmetric {
    display: grid;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--wtb-shadow-soft);
    border: 1px solid var(--wtb-border);
    background: var(--wtb-bg-dark);
}

.wtb-gallery-count-1 { display: block; }
.wtb-gallery-count-1 .wtb-gallery-item-wrap { height: auto; max-height: 600px; background: #000; }
.wtb-gallery-count-1 .wtb-gallery-item-wrap img { object-fit: contain; }

.wtb-gallery-count-2 { grid-template-columns: 1fr 1fr; height: 400px; }

.wtb-gallery-count-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 500px; }
.wtb-gallery-count-3 .wtb-gallery-img-1 { grid-row: 1 / -1; }

.wtb-gallery-count-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 500px; }
.wtb-gallery-count-4 .wtb-gallery-img-1 { grid-column: 1; grid-row: 1 / -1; }
.wtb-gallery-count-4 .wtb-gallery-img-2 { grid-column: 2; grid-row: 1 / -1; }

.wtb-gallery-count-5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 500px; }
.wtb-gallery-count-5 .wtb-gallery-img-1 { grid-column: 1; grid-row: 1 / -1; }

.wtb-gallery-item-wrap { width: 100%; height: 100%; position: relative; overflow: hidden; }
.wtb-gallery-item-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; cursor: pointer; }
.wtb-gallery-item-wrap img:hover { transform: scale(1.03); opacity: 0.9; }

@media(max-width: 768px) {
    .wtb-tour-gallery-asymmetric { display: flex; flex-direction: column; height: auto; gap: 4px; }
    .wtb-gallery-item-wrap { height: 250px; }
    .wtb-gallery-count-1 .wtb-gallery-item-wrap { height: auto; }
}

.wtb-main-image:hover {
    transform: scale(1.02);
}

.wtb-tour-content-wrap {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .wtb-tour-content-wrap {
        grid-template-columns: 1fr;
    }
}

.wtb-tour-description {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--wtb-text-light);
}

.wtb-section-title {
    font-size: 1.5rem;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--wtb-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wtb-border);
}

/* Booking Widget - Glassmorphism Dark */
.wtb-tour-booking-sidebar {
    position: relative;
}

.wtb-booking-widget {
    background: var(--wtb-bg-dark);
    border: 1px solid var(--wtb-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--wtb-shadow-soft);
    position: sticky;
    top: 3rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.wtb-booking-widget *, .wtb-booking-widget *::before, .wtb-booking-widget *::after {
    box-sizing: border-box;
}

.wtb-booking-widget:hover {
    box-shadow: var(--wtb-shadow-hover);
    transform: translateY(-2px);
}

.wtb-price-box {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wtb-border);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wtb-price {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Cormorant', serif;
    color: var(--wtb-primary);
}

.wtb-per-person {
    color: var(--wtb-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* Stepper UI */
.wtb-stepper-group {
    margin-bottom: 1.5rem;
}

.wtb-stepper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.wtb-stepper-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wtb-stepper-label strong {
    display: block;
    color: var(--wtb-text-light);
    font-size: 1rem;
}

.wtb-stepper-label small {
    color: var(--wtb-text-muted);
}

.wtb-stepper-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wtb-stepper-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--wtb-primary);
    background: transparent;
    color: var(--wtb-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.wtb-stepper-btn:hover {
    background: var(--wtb-primary);
    color: var(--wtb-bg-darker);
}

.wtb-stepper-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--wtb-text-light);
    font-weight: bold;
    font-size: 1.1rem;
    -moz-appearance: textfield;
}
.wtb-stepper-input::-webkit-outer-spin-button,
.wtb-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Form inputs */
.wtb-form-group {
    margin-bottom: 1.2rem;
}

.wtb-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wtb-text-muted);
}

.wtb-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(0,0,0,0.2);
    color: var(--wtb-text-light);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wtb-input:focus {
    outline: none;
    border-color: var(--wtb-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Options Cards */
.wtb-options-section {
    margin: 1.5rem 0;
}

.wtb-options-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--wtb-text-light);
}

.wtb-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wtb-option-card {
    display: block;
    cursor: pointer;
}

.wtb-option-input {
    display: none;
}

.wtb-option-card-inner {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.wtb-option-card:hover .wtb-option-card-inner {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.05);
}

.wtb-option-input:checked + .wtb-option-card-inner {
    border-color: var(--wtb-primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 0 0 1px var(--wtb-primary);
}

.wtb-option-name {
    color: var(--wtb-text-light);
    font-weight: 500;
}

.wtb-option-price {
    color: var(--wtb-primary);
    font-weight: bold;
}

.wtb-option-price small {
    color: var(--wtb-text-muted);
    font-weight: normal;
}

/* Totals and submit */
.wtb-total-price {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 2rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--wtb-border);
}

.wtb-submit-btn {
    width: 100%;
    background: var(--wtb-primary);
    color: var(--wtb-bg-darker);
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.wtb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    opacity: 0.9;
}

.wtb-submit-btn:active {
    transform: translateY(0);
}

.wtb-submit-btn:disabled {
    background: #4a5568;
    color: #a0aec0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.wtb-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.wtb-message.success {
    display: block;
    background: rgba(44, 122, 123, 0.2);
    color: #4fd1c5;
    border: 1px solid #319795;
}

.wtb-message.error {
    display: block;
    background: rgba(197, 48, 48, 0.2);
    color: #fc8181;
    border: 1px solid #e53e3e;
}

/* Archive Grid */
.wtb-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.wtb-tour-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--wtb-bg-dark);
    box-shadow: var(--wtb-shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--wtb-border);
}

.wtb-tour-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--wtb-shadow-hover);
}

.wtb-tour-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.wtb-tour-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.wtb-tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wtb-tour-card:hover .wtb-tour-card-image img {
    transform: scale(1.05);
}

.wtb-tour-card-content {
    padding: 1.5rem;
}

.wtb-tour-card-title {
    font-size: 1.5rem;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--wtb-primary);
}

.wtb-tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--wtb-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.wtb-tour-card-meta .wtb-price {
    font-weight: 800;
    color: var(--wtb-primary);
    font-size: 1.2rem;
}

/* Multi-step Form */
.wtb-form-step {
    display: none;
}
.wtb-step-active {
    display: block;
}

.wtb-step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wtb-border);
}

.wtb-step-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--wtb-text-light);
    flex-grow: 1;
    text-align: center;
}

.wtb-btn-back {
    background: transparent;
    border: none;
    color: var(--wtb-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.wtb-btn-back:hover {
    color: var(--wtb-primary);
}

.wtb-btn-continue {
    background: transparent;
    border: 2px solid var(--wtb-primary);
    color: var(--wtb-primary);
}

.wtb-btn-continue:hover {
    background: var(--wtb-primary);
    color: var(--wtb-bg-darker);
}

/* Custom Toast */
.wtb-toast { position: fixed; bottom: 20px; right: 20px; background: rgba(197, 48, 48, 0.95); color: #fff; padding: 15px 25px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); font-weight: 500; z-index: 9999; opacity: 0; transform: translateY(20px); transition: all 0.3s ease; border: 1px solid #e53e3e; backdrop-filter: blur(5px); }
.wtb-toast.show { opacity: 1; transform: translateY(0); }
