/**
 * 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;
}

/* 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); }
