/**
 * TravelPro Theme - Main Styles
 * 
 * @package TravelPro
 */

/* ==========================================================================
   CSS Variables (inherit from style.css)
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #2980b9;
    --color-primary-dark: #1a6fa0;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-dark: #2c3e50;
    --color-light: #ecf0f1;
    --color-white: #ffffff;
    --color-gray: #95a5a6;
    --color-gray-light: #bdc3c7;
    --color-gray-dark: #7f8c8d;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-h1: 42px;
    --font-size-h2: 32px;
    --font-size-h3: 24px;
    --font-size-h4: 20px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 0px;
    --spacing-xxl: 100px;

    /* Layout */
    --container-width: 1200px;
    --sidebar-width: 300px;
    --border-radius: 8px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--color-dark);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h4 {
    font-size: var(--font-size-h4);
}

/* Paragraphs */
p {
    margin-bottom: var(--spacing-md);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

/* Lists */
ul,
ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-content {
    min-height: calc(100vh - 400px);
}

.content-area {
    padding: var(--spacing-xl) 0;
}

/* Flex Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-md) * -1);
}

.col {
    padding: 0 var(--spacing-md);
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Sidebar Layout */
.has-sidebar {
    display: flex;
    flex-wrap: wrap;
}

.has-sidebar .main-content {
    flex: 1;
    max-width: calc(100% - var(--sidebar-width) - var(--spacing-lg));
    margin-right: var(--spacing-lg);
}

.has-sidebar .sidebar {
    width: var(--sidebar-width);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #2980b9;
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-white:hover {
    background-color: var(--color-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--font-size-small);
}

/* ==========================================================================
   Forms
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 17px 16px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--border-radius);
    /* background-color: var(--color-white); */
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-small);
    color: var(--color-gray);
}

.card-meta i {
    margin-right: 5px;
    color: var(--color-primary);
}

/* ==========================================================================
   Badges & Labels
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}

.badge-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.badge-sale {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.badge-featured {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Price */
.price {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-primary);
}

.price-original {
    text-decoration: line-through;
    color: var(--color-gray);
    font-size: var(--font-size-base);
    font-weight: normal;
}

.price-from {
    font-size: var(--font-size-small);
    font-weight: normal;
    color: var(--color-gray);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-bg-light {
    background-color: var(--color-light);
}

.section-bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-lg);
}

.hero-title {
    font-size: 56px;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: var(--spacing-sm);
}

.pt-2 {
    padding-top: var(--spacing-md);
}

.pt-3 {
    padding-top: var(--spacing-lg);
}

.pt-4 {
    padding-top: var(--spacing-xl);
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: var(--spacing-sm);
}

.pb-2 {
    padding-bottom: var(--spacing-md);
}

.pb-3 {
    padding-bottom: var(--spacing-lg);
}

.pb-4 {
    padding-bottom: var(--spacing-xl);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-inline-block {
    display: inline-block;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Page Template (post_type=page) — Full-width, no sidebar
   ========================================================================== */

.page-content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl, 40px) 0;
}

.page-single .page-header {
    margin-bottom: var(--spacing-lg, 24px);
}

.page-single .page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark, #1a1a2e);
    line-height: 1.3;
}

.page-featured-image {
    margin-bottom: var(--spacing-lg, 24px);
    border-radius: var(--border-radius-lg, 12px);
    overflow: hidden;
}

.page-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.page-entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-gray-dark, #374151);
}

.page-entry-content h2 {
    font-size: 28px;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--color-dark, #1a1a2e);
}

.page-entry-content h3 {
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--color-dark, #1a1a2e);
}

.page-entry-content p {
    margin-bottom: 16px;
}

.page-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius, 6px);
}

.page-entry-content ul,
.page-entry-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-entry-content li {
    margin-bottom: 6px;
}

/* THINGS TO DO ACTIVITY CARDS CSS REDESIGN */
.kh-activity-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
}

.kh-activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.kh-activity-card .kh-act-img-wrap {
    position: relative;
    height: 165px;
    background: #f8f8f8;
    overflow: hidden;
}

.kh-activity-card .kh-act-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
    margin: 0;
}

.kh-activity-card:hover .kh-act-img-wrap img {
    transform: scale(1.05);
}

.kh-activity-card .kh-act-img-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.kh-act-duration-overlay {
    position: absolute;
    bottom: 12px;
    left: 15px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    background: transparent;
    line-height: 1;
}

.kh-act-duration-overlay .material-symbols-outlined {
    font-size: 15px;
    font-weight: 400;
}

.kh-act-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kh-act-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.kh-act-stars {
    display: flex;
    gap: 1px;
}

.kh-act-stars .material-symbols-outlined {
    font-size: 15px;
    font-variation-settings: 'FILL' 1;
    color: #ffb400;
}

.kh-act-stars .material-symbols-outlined.empty-star {
    font-variation-settings: 'FILL' 0;
    color: #ccc;
}

.kh-act-rating-text {
    font-size: 0.75rem;
    color: #777;
    margin-left: 2px;
}

.kh-activity-card .kh-act-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kh-act-pricing {
    margin-top: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kh-act-old-price {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1;
}

.kh-act-new-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.kh-act-price-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111;
}

.kh-act-price-suffix {
    font-size: 0.75rem;
    color: #777;
    font-weight: 400;
}

.kh-act-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #ff5722;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.kh-act-cta:hover {
    background: #e64a19;
    color: #fff;
    text-decoration: none;
}

/* Activities Carousel Wrapper */
.kh-activities-wrapper {
    position: relative;
    padding: 0 30px;
}

.kh-activities-track {
    overflow: hidden;
    width: 100%;
}

.kh-packages-row.kh-activities-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: max-content;
    transition: transform 0.4s ease;
}

.kh-activities-carousel .kh-package-col {
    width: calc((100vw - 120px) / 3 - 14px);
    max-width: 340px;
    min-width: 220px;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .kh-activities-carousel .kh-package-col {
        width: calc((min(1140px, 100vw - 60px)) / 3 - 14px);
    }
}

@media (max-width: 1199px) {
    .kh-activities-carousel .kh-package-col {
        width: calc((100vw - 100px) / 3 - 14px);
        max-width: 340px;
    }
}

@media (max-width: 991px) {
    .kh-activities-carousel .kh-package-col {
        width: calc((100vw - 80px) / 2 - 10px);
        max-width: 340px;
    }
}

@media (max-width: 767px) {
    .kh-activities-carousel .kh-package-col {
        width: calc(100vw - 90px);
        max-width: 100%;
    }

    .kh-activities-wrapper {
        padding: 0 25px;
    }
}

/* Slider Arrows */
.kh-slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    transition: all 0.25s ease;
    padding: 0;
}

.kh-slick-arrow .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}

.kh-arrow-prev {
    left: -8px;
}

.kh-arrow-next {
    right: -8px;
}

.kh-slick-arrow:hover {
    background: #ff5722;
    color: #fff;
    border-color: #ff5722;
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

/* ── Things To Do Custom Cards (Global) ── */
.ttd-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--border, #E8E4DC);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ttd-card:hover {
    border-color: #D4CFC5;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.10);
    transform: translateY(-3px);
}

.ttd-card-img {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    background: linear-gradient(145deg, #C8E6DA 0%, #8BBFAD 100%);
}

.ttd-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0;
}

.ttd-card:hover .ttd-card-img img {
    transform: scale(1.04);
}

.ttd-card-badge {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #1C1917;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.ttd-card-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.90);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #78716C;
}

.ttd-card-heart:hover {
    color: #E05050;
    background: #fff;
}

.ttd-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ttd-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1C1917;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.ttd-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.ttd-stars {
    display: flex;
    gap: 1px;
}

.ttd-star {
    font-size: 12px;
    color: #E8A020;
    line-height: 1;
}

.ttd-star.empty {
    color: #DDD8D0;
}

.ttd-rating-score {
    font-size: 13px;
    font-weight: 600;
    color: #1C1917;
}

.ttd-rating-count {
    font-size: 12px;
    color: #A8A29E;
}

.ttd-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 16px;
}

.ttd-price-off {
    font-size: 13px;
    color: #A8A29E;
    text-decoration: line-through;
}

.ttd-price-main {
    font-size: 22px;
    font-weight: 600;
    color: #1C1917;
    letter-spacing: -0.02em;
}

.ttd-price-per {
    font-size: 12px;
    color: #78716C;
}

.ttd-price-save {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #2D7A55;
    background: #E8F4EE;
    padding: 3px 8px;
    border-radius: 20px;
}

.ttd-btn-book {
    display: block;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    border: 1.5px solid #D4CFC5;
    background: transparent;
    color: #1C1917;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.01em;
    margin-bottom: 0;
}

.ttd-btn-book:hover {
    background: #1C1917;
    color: #FFFFFF;
    border-color: #1C1917;
}

.ttd-btn-book:active {
    transform: scale(0.98);
}

/* ============================================
   ACTIVITY BOOKING MODAL
   ============================================ */
.ttd-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ttd-modal-wrapper.is-active {
    opacity: 1;
    visibility: visible;
}

.ttd-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.ttd-modal-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    z-index: 2;
}

.ttd-modal-wrapper.is-active .ttd-modal-container {
    transform: translateY(0) scale(1);
}

.ttd-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    z-index: 10;
}

.ttd-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.ttd-modal-header {
    padding: 32px 32px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px solid #f1f5f9;
}

.ttd-modal-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ttd-modal-title-wrap h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.ttd-modal-title-wrap p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.ttd-modal-body {
    padding: 24px 32px 32px;
}

.ttd-booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ttd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ttd-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ttd-form-group label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ttd-input-with-icon {
    position: relative;
}

.ttd-input-with-icon .material-symbols-outlined {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
    pointer-events: none;
}

.ttd-input-with-icon input {
    width: 100%;
    height: 48px;
    padding: 0 12px 0 40px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
    transition: all 0.2s;
    background: #f8fafc;
}

.ttd-input-with-icon input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ttd-input-with-icon input[readonly] {
    background: #f1f5f9;
    cursor: default;
    border-color: #e2e8f0;
}

.ttd-submit-btn {
    margin-top: 10px;
    height: 54px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -5px rgba(29, 78, 216, 0.4);
}

.ttd-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(29, 78, 216, 0.5);
    filter: brightness(1.1);
}

.ttd-submit-btn:active {
    transform: translateY(0);
}

.ttd-submit-btn .btn-loader {
    align-items: center;
    gap: 8px;
}

.ttd-success-msg {
    text-align: center;
    padding: 20px 0;
}

.ttd-success-msg .material-symbols-outlined {
    font-size: 64px;
    color: #22c55e;
    margin-bottom: 16px;
}

.ttd-success-msg h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.ttd-success-msg p {
    margin: 0;
    color: #64748b;
}

body.ttd-modal-open {
    overflow: hidden;
}

@keyframes ttd-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ttd-submit-btn .spin {
    animation: ttd-spin 1s linear infinite;
}

@media (max-width: 600px) {
    .ttd-modal-container {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .ttd-modal-wrapper {
        padding: 0;
    }

    .ttd-modal-body {
        flex: 1;
        overflow-y: auto;
    }

    .ttd-form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   IMAGE QUALITY: Ensure all card images render crisp & sharp
   Prevents blurriness caused by WordPress width/height attributes
   forcing small intrinsic sizes that browsers then upscale.
   ========================================================================== */

/* Tour cards (template-parts/tour/card.php) */
.tour-card {
    position: relative;
    cursor: pointer;
}

.tour-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tour-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-image img {
    transform: scale(1.05);
}

/* Hotel card images (template-parts/hotel/card.php) */
.hotel-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotel-card:hover .hotel-card-image img {
    transform: scale(1.05);
}

/* Archive tour/hotel page card images */
.archive-tour-card-image img,
.archive-hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Search result images */
.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Homepage package card images (page-home.php .kh-pkg-img) */
.kh-pkg-img img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Block tour card images */
.tp-tour-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.tp-tour-card__image-wrap img,
.tp-tour-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Destination page tour card images — ensure proper rendering */
.dest-tour-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Global: Ensure WordPress-generated thumbnails never render blurry */
.post-thumbnail img,
.wp-post-image {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    /* Force browser to sharpen */
    image-rendering: crisp-edges;
}

/* ============================================
   DEMO TOUR PACKAGE CARD (Clean Professional Design)
   ============================================ */
.dest-tour-card.dest-demo-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 22px !important;
    border: 1px solid #e5e9f0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    cursor: pointer !important;
    color: #1e293b !important;
    text-align: left;
    margin: 0;
}

.dest-tour-card.dest-demo-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 42px -8px rgba(15, 23, 42, 0.14), 0 8px 18px -4px rgba(15, 23, 42, 0.06) !important;
    border-color: #cbd5e1 !important;
}

.dest-demo-card .dest-demo-card-media {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #f1f5f9;
    overflow: hidden;
    display: block;
}

.dest-demo-card .dest-demo-card-media img,
.dest-demo-card .dest-demo-card-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-tour-card.dest-demo-card:hover .dest-demo-card-media img,
.dest-tour-card.dest-demo-card:hover .dest-demo-card-media svg {
    transform: scale(1.04);
}

.dest-demo-ribbon-sun {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 65%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.dest-demo-ribbon {
    position: absolute;
    top: 0;
    right: 28px;
    width: 60px;
    min-height: 74px;
    background: linear-gradient(180deg, #c59332 0%, #b07d1f 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 13px), 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 13px), 0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 6px 18px 6px;
    color: #2e1c03;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    text-align: center;
    box-sizing: border-box;
}

.dest-demo-ribbon-val {
    font-size: 17.5px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.3px;
    color: #2b1b04;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dest-demo-ribbon-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.1;
    margin-top: 2px;
    color: #2b1b04;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dest-tour-card.dest-demo-card .dest-demo-card-body {
    padding: 22px 24px 24px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.dest-demo-location {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #e22d3b !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    line-height: 1 !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
}

.dest-demo-location .material-symbols-outlined {
    font-size: 16px !important;
    color: #e22d3b !important;
    vertical-align: middle !important;
}

.dest-demo-title {
    font-family: "Merriweather", Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin: 0 0 18px 0 !important;
    letter-spacing: -0.2px !important;
}

.dest-demo-title a,
.dest-demo-title-link {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.dest-tour-card.dest-demo-card:hover .dest-demo-title a,
.dest-demo-title a:hover {
    color: #155e6d !important;
}

.dest-demo-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 18px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: none !important;
}

.dest-demo-feat-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.dest-demo-feat-item .material-symbols-outlined {
    font-size: 19px !important;
    color: #107b88 !important;
    flex-shrink: 0 !important;
    margin-top: 1px !important;
}

.dest-demo-divider {
    border-top: 1px dashed #e2e8f0 !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.dest-demo-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    margin-top: auto !important;
    gap: 16px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.dest-demo-pricing {
    display: flex !important;
    flex-direction: column !important;
}

.dest-demo-price {
    color: #e22d3b !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 4px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.dest-demo-price-sub {
    font-size: 13.5px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1.2 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.dest-demo-old-price {
    text-decoration: line-through !important;
    color: #94a3b8 !important;
    opacity: 0.9 !important;
}

.dest-demo-dot {
    color: #94a3b8 !important;
    font-weight: bold !important;
}

.dest-demo-unit {
    color: #64748b !important;
}

.dest-demo-btn {
    background: #155563 !important;
    background-color: #155563 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 11px 26px !important;
    border-radius: 999px !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(21, 85, 99, 0.2) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.dest-demo-btn:hover {
    background: #1a6474 !important;
    background-color: #1a6474 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(21, 85, 99, 0.35) !important;
    color: #ffffff !important;
}

.dest-demo-btn:active {
    transform: translateY(0) !important;
}

@media (max-width: 480px) {
    .dest-tour-card.dest-demo-card .dest-demo-card-body {
        padding: 18px 18px 20px 18px !important;
    }

    .dest-demo-title {
        font-size: 18px !important;
        margin-bottom: 16px !important;
    }

    .dest-demo-features {
        gap: 10px 14px !important;
        margin-bottom: 18px !important;
    }

    .dest-demo-price {
        font-size: 24px !important;
    }

    .dest-demo-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}