@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;500;700&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Global box-sizing reset */
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {

    --color-primary: #10b981;
    /* Emerald 500 */
    --color-primary-dark: #059669;
    /* Emerald 600 */
    --color-primary-light: #d1fae5;
    /* Emerald 100 */
    --color-secondary: #f0fdf4;
    /* Emerald 50 */

    --color-text-main: #1f2937;
    /* Gray 800 */
    --color-text-muted: #6b7280;
    /* Gray 500 */
    --color-text-light: #9ca3af;
    /* Gray 400 */

    --color-bg-page: #f8fafc;
    /* Slate 50 */
    --color-bg-card: #ffffff;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #111827;
    margin: 0;
}

/* Page Layout */
.public-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.page-shell {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #111827, #059669);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .badge-personal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

.hero .intro-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 65ch;
    margin: 0 auto;
}

/* Reserved Badge */
.reserved-banner {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

/* Included Section */
.included-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f3f4f6;
}

.included-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
}

.included-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.included-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secondary);
    border-radius: 10px;
    color: var(--color-primary);
}

.icon-box svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Offer Card */
.offer-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    display: grid;
    grid-template-columns: 1fr 240px;
    /* Content | Sidebar (Price) */
    gap: 18px;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary-light);
}

.offer-header {
    margin-bottom: 0.75rem;
}

.item-label {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    margin-bottom: 0.35rem;
}

.item-label.best-price,
.item-label.best_price {
    background-color: #f59e0b;
    /* Amber 500 */
}

.item-label.premium {
    background-color: #6366f1;
    /* Indigo 500 */
}

.item-label.recommended {
    background-color: #10b981;
    /* Emerald 500 */
}

.item-label.economy {
    background-color: #6b7280;
    /* Gray 500 */
}

.offer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Hotel stars & TripAdvisor rating row */
.hotel-ratings-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.hotel-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 2px;
    display: inline-flex;
}

.ratings-sep {
    color: var(--color-text-light);
    font-weight: 300;
    user-select: none;
}

.trip-advisor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-text-main);
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.trip-advisor-badge .ta-logo {
    height: 14px;
    width: auto;
    flex-shrink: 0;
}

.trip-advisor-badge .ta-rating {
    font-weight: 700;
    color: #34d399;
}

.trip-advisor-badge .ta-bubbles {
    color: #fbbf24;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.trip-advisor-badge .ta-count {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.ta-circles {
    font-weight: 700;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 2px;
}

.ta-count {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.offer-meta {
    display: flex;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    fill: var(--color-text-light);
}

/* Gallery - Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 140px 140px;
    gap: 0.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-sub {
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.2s;
}

.gallery-img:hover {
    filter: opacity(0.9);
}

/* Fallback for single image or missing images */
.gallery-single {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.gallery-single-wrap {
    position: relative;
    cursor: pointer;
}

.gallery-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.gallery-tap-hint {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.gallery-mobile-strip {
    display: none;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 1rem 0;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    cursor: pointer;
}

.gallery-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    display: block;
}

/* Sidebar Price Box */
.offer-sidebar {
    background: var(--color-bg-page);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.sidebar-agent-note {
    margin-top: 1rem;
    background: #fffbeb;
    /* Amber 50 */
    border: 1px solid #fcd34d;
    /* Amber 300 */
    color: #92400e;
    /* Amber 800 */
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    text-align: left;
    width: 100%;
}

.price-tag {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0.35rem 0 1rem 0;
    display: block;
}

.price-tag-old {
    font-size: 0.95rem;
    color: #888;
    text-decoration: line-through;
    display: block;
    margin-bottom: 0.25rem;
}

.btn-reserve {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-reserve:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-reserve:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Description Details */
details.modern-details {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-md);
    overflow: hidden;
}

details.modern-details summary {
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary-dark);
    background: var(--color-secondary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

details.modern-details summary::after {
    content: '+';
    font-size: 1.1rem;
}

details.modern-details[open] summary::after {
    content: '-';
}

.details-content {
    padding: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Map Section */
.map-container {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 4px;
    box-shadow: var(--shadow-soft);
    margin-top: 1.5rem;
    border: 1px solid #f3f4f6;
    position: relative;
    transition: all 0.3s ease;
}

#hotels-map {
    border-radius: var(--radius-md);
    height: 160px;
    /* Small default height */
    width: 100%;
    transition: height 0.3s ease;
}

.map-container.expanded #hotels-map {
    height: 450px;
    /* Expanded height */
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.map-toggle-btn {
    width: 100%;
    background: #f9fafb;
    border: none;
    border-top: 1px solid #f3f4f6;
    padding: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.map-toggle-btn:hover {
    background: #f0fdf4;
}

.map-toggle-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.map-container.expanded .map-toggle-btn svg {
    transform: rotate(180deg);
}

/* Feedback Section */
.feedback-box {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feedback-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-feedback {
    background: #fff;
    border: 2px solid #e5e7eb;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-feedback.like:hover,
.btn-feedback.active-like {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-secondary);
}

.btn-feedback.dislike:hover,
.btn-feedback.active-dislike {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

/* Chat Section */
.chat-box {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-top: 1.5rem;
    overflow: hidden;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f3f4f6;
}

.chat-header {
    background: var(--color-secondary);
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.chat-header h3 {
    color: var(--color-primary-dark);
    font-size: 1rem;
}

.chat-messages {
    max-height: 180px;
    overflow-y: auto;
    padding: 1.25rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-bubble {
    padding: 0.75rem;
    border-radius: 0.75rem;
    max-width: 85%;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-bubble.client {
    background: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message-bubble.manager {
    background: var(--color-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 1.25rem;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 0.75rem;
}

.chat-input-area textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-family: inherit;
    resize: none;
    min-height: 70px;
    font-size: 0.9rem;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .offer-card {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .offer-sidebar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.85rem 1rem;
        background: #f0fdf4;
        /* Light emerald tint */
        border: 1px solid #d1fae5;
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
    }

    .price-box {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .price-tag {
        margin: 0;
        font-size: 1.4rem;
        line-height: 1;
    }

    .price-tag-old {
        margin-bottom: 2px;
        font-size: 0.85rem;
    }

    .btn-reserve {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Mobile Gallery Layout */

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 250px auto;
    }

    .gallery-main {
        grid-row: 1;
        grid-column: 1;
    }

    .gallery-sub {
        /* Hide extra images on mobile if needed, or row them */
        display: none;
    }

    .gallery-tap-hint {
        display: block;
    }

    .gallery-mobile-strip {
        display: flex;
    }
}

@media (max-width: 480px) {
    .chat-messages {
        max-height: 220px;
    }
}

/* Insurance / Upsell Card */
.insurance-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    /* Compact padding */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
}

.extra-services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insurance-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insurance-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
    flex-shrink: 0;
}

.insurance-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.insurance-text-group {
    display: flex;
    flex-direction: column;
}

.insurance-title {
    font-weight: 700;
    color: #1e40af;
    font-size: 0.95rem;
    line-height: 1.2;
}

.insurance-desc {
    font-size: 0.8rem;
    color: #3b82f6;
    margin-top: 2px;
}

.btn-insurance {
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

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

@media (max-width: 600px) {
    .insurance-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .insurance-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .insurance-text-group {
        align-items: center;
    }

    .btn-insurance {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Gallery Modal */
.gallery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-modal-overlay.active {
    display: flex;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.2s;
    user-select: none;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-counter {
    color: white;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    opacity: 0.8;
}

/* Gallery More Overlay */
.gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.gallery-more-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}