/*
Theme Name: Gezigen Turizm
Theme URI: https://ankaragezigenturizm.com
Author: Gezigen Turizm
Description: Ankara çıkışlı günübirlik ve konaklamalı tur satışı için özel WooCommerce teması.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: gezigen-turizm
WC requires at least: 8.0
WC tested up to: 8.9
*/

/* ============================================================
   CSS VARIABLES — Gezigen Turizm marka renkleri
============================================================ */
:root {
  --primary:    #1B2170;   /* Lacivert */
  --primary-dark: #13185a;
  --accent:     #F47920;   /* Turuncu */
  --accent-dark:#d9661a;
  --white:      #FFFFFF;
  --light:      #F5F6FA;
  --border:     #E2E5F0;
  --gray:       #6B7280;
  --dark:       #111827;
  --success:    #10B981;
  --danger:     #EF4444;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 20px rgba(27,33,112,.08);
  --shadow-md:  0 8px 32px rgba(27,33,112,.13);
  --shadow-lg:  0 16px 48px rgba(27,33,112,.18);
  --font:       'Poppins', sans-serif;
  --tr:         .25s ease;
  --header-h:   72px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--light); }
.text-center { text-align: center; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
.section-tag {
  display: inline-block;
  background: rgba(244,121,32,.12);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-title span { color: var(--accent); }
.section-sub { color: var(--gray); font-size: 1rem; max-width: 560px; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 600; font-size: .92rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--tr); text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,33,112,.28); }
.btn-accent    { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,121,32,.35); }
.btn-outline   { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-dark { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 9px 20px; font-size: .84rem; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(27,33,112,.08);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 48px; width: auto; object-fit: contain; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a {
  padding: 8px 15px; border-radius: var(--radius-sm);
  color: var(--dark); font-weight: 600; font-size: .9rem;
  transition: all var(--tr);
}
.main-nav > a:hover, .main-nav > a.active { background: rgba(27,33,112,.07); color: var(--primary); }

/* Header right */
.header-right { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--light); color: var(--dark); font-size: 1.15rem;
  transition: all var(--tr); text-decoration: none;
}
.cart-btn:hover { background: var(--primary); color: var(--white); }
.cart-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--accent); color: var(--white);
  font-size: .6rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.phone-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 700; font-size: .88rem;
}
.phone-btn:hover { color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all var(--tr); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: calc(100vh - var(--header-h));
  background: linear-gradient(150deg, var(--primary) 0%, #2d3a9e 55%, #1a1f5e 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/img/hero-bg.jpg') center/cover no-repeat;
  opacity: .15; z-index: 0;
}
/* Decorative circles */
.hero::after {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(244,121,32,.08);
  right: -150px; top: -150px; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 60px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-content {}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,121,32,.2); border: 1px solid rgba(244,121,32,.35);
  color: #ffd099; padding: 7px 16px; border-radius: 50px;
  font-size: .8rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800; color: var(--white); line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

/* Stats */
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { border-left: 3px solid var(--accent); padding-left: 14px; }
.hero-stat__num { font-size: 1.7rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat__lbl { font-size: .75rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Hero right — search card */
.hero-card {
  background: var(--white); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.search-form { display: flex; flex-direction: column; gap: 14px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--gray); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.form-group select,
.form-group input[type=date],
.form-group input[type=text] {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem; color: var(--dark);
  outline: none; transition: border-color var(--tr); background: var(--white);
}
.form-group select:focus,
.form-group input:focus { border-color: var(--primary); }
.search-form .btn { width: 100%; justify-content: center; padding: 14px; }

/* ============================================================
   CATEGORY TABS
============================================================ */
.cat-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.cat-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  border: 2px solid var(--border); background: var(--white);
  font-weight: 600; font-size: .9rem; cursor: pointer;
  color: var(--dark); transition: all var(--tr); text-decoration: none;
}
.cat-tab:hover, .cat-tab.active {
  border-color: var(--primary); background: var(--primary); color: var(--white);
}
.cat-tab .cat-count {
  background: rgba(255,255,255,.2); padding: 2px 8px;
  border-radius: 50px; font-size: .75rem;
}
.cat-tab:not(:hover):not(.active) .cat-count { background: var(--light); }

/* ============================================================
   TUR KARTI
============================================================ */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 28px; }
.tour-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.tour-card__img {
  position: relative; height: 220px; overflow: hidden;
}
.tour-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.tour-card:hover .tour-card__img img { transform: scale(1.07); }

.tour-card__type {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border-radius: 50px;
  font-size: .72rem; font-weight: 700; color: var(--white);
}
.tour-card__type--konaklamali { background: var(--primary); }
.tour-card__type--gunubirlik  { background: var(--accent); }

.tour-card__sold {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55); display: flex;
  align-items: center; justify-content: center;
}
.tour-card__sold span {
  background: var(--danger); color: var(--white);
  font-weight: 700; font-size: 1rem;
  padding: 10px 24px; border-radius: 50px;
  letter-spacing: .02em;
}

.tour-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tour-card__loc { display: flex; align-items: center; gap: 5px; color: var(--gray); font-size: .8rem; margin-bottom: 8px; }
.tour-card__title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.35; }
.tour-card__title a { color: inherit; }
.tour-card__title a:hover { color: var(--primary); }
.tour-card__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.tour-meta { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--gray); }

.tour-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto;
}
.tour-price__label { font-size: .73rem; color: var(--gray); }
.tour-price__val { font-size: 1.45rem; font-weight: 800; color: var(--accent); line-height: 1; }
.tour-price__per { font-size: .72rem; color: var(--gray); }

/* Kontenjan bar */
.kontenjan-bar { margin: 10px 0 14px; }
.kontenjan-bar__top { display: flex; justify-content: space-between; font-size: .76rem; color: var(--gray); margin-bottom: 5px; }
.kontenjan-bar__track { height: 5px; background: var(--border); border-radius: 10px; overflow: hidden; }
.kontenjan-bar__fill { height: 100%; background: var(--accent); border-radius: 10px; transition: width .6s ease; }
.kontenjan-bar__fill--low { background: var(--danger); }

/* ============================================================
   NEDEN BİZ
============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; }
.feature-item { text-align: center; padding: 36px 24px; }
.feature-icon {
  width: 68px; height: 68px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; margin: 0 auto 18px;
}
.feature-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-item p { font-size: .88rem; color: var(--gray); line-height: 1.7; }

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary), #2d3a9e);
  padding: 56px 0; color: var(--white);
}
.page-header h1 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; margin-bottom: 8px; }
.page-header p { opacity: .8; font-size: .95rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; margin-top: 10px; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ============================================================
   SHOP LAYOUT
============================================================ */
.shop-wrap { padding: 60px 0; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.results-count { color: var(--gray); font-size: .88rem; }
.sort-select {
  padding: 9px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); outline: none; font-size: .88rem; cursor: pointer;
  color: var(--dark);
}
.sort-select:focus { border-color: var(--primary); }

/* Sold out overlay */
.tour-card.sold-out { opacity: .85; }

/* ============================================================
   SINGLE PRODUCT
============================================================ */
.single-tour { padding: 60px 0; }
.single-tour__layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.single-tour__gallery img { width: 100%; border-radius: var(--radius); margin-bottom: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.gallery-thumbs img { border-radius: var(--radius-sm); height: 90px; object-fit: cover; cursor: pointer; opacity: .8; transition: opacity var(--tr); }
.gallery-thumbs img:hover { opacity: 1; }

.single-tour__info {}
.single-tour__type { margin-bottom: 12px; }
.single-tour__title { font-size: clamp(1.4rem,2.5vw,2rem); font-weight: 800; margin-bottom: 16px; }
.single-tour__price { font-size: 2.2rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.single-tour__price-note { font-size: .82rem; color: var(--gray); margin-bottom: 24px; }

.info-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.info-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--light); border-radius: 50px;
  padding: 7px 14px; font-size: .82rem; font-weight: 600; color: var(--dark);
}

.tour-desc { color: var(--gray); font-size: .93rem; line-height: 1.8; margin-bottom: 24px; }

.kontenjan-big { background: var(--light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; }
.kontenjan-big__label { font-size: .82rem; font-weight: 600; color: var(--gray); margin-bottom: 8px; }
.kontenjan-big__track { height: 8px; background: var(--border); border-radius: 10px; overflow: hidden; }
.kontenjan-big__fill { height: 100%; background: var(--accent); border-radius: 10px; }
.kontenjan-big__note { font-size: .78rem; color: var(--gray); margin-top: 6px; }

.add-to-cart-box { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.qty-input {
  width: 72px; padding: 12px; text-align: center;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font); outline: none;
}
.qty-input:focus { border-color: var(--primary); }
.add-to-cart-box .btn { flex: 1; justify-content: center; }

.trust-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.trust-pill { font-size: .78rem; color: var(--gray); display: flex; align-items: center; gap: 4px; }

/* Tour program accordion */
.tour-program { margin-top: 48px; }
.tour-program h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.program-day { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.program-day__head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; cursor: pointer; background: var(--white);
  font-weight: 600; font-size: .95rem; user-select: none;
}
.program-day__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.program-day__body { padding: 0 20px 16px 66px; color: var(--gray); font-size: .9rem; line-height: 1.8; display: none; }
.program-day.open .program-day__body { display: block; }
.program-day__arrow { margin-left: auto; transition: transform var(--tr); }
.program-day.open .program-day__arrow { transform: rotate(180deg); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .site-logo { margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; opacity: .75; }
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); font-size: .95rem;
  transition: all var(--tr); text-decoration: none;
}
.social-btn:hover { background: var(--accent); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: .92rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color var(--tr); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   WOOCOMMERCE NOTICES
============================================================ */
.woocommerce-notices-wrapper { margin-bottom: 20px; }
.woocommerce-message { background: #d1fae5; border-left: 4px solid var(--success); color: #065f46; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.woocommerce-error   { background: #fee2e2; border-left: 4px solid var(--danger);  color: #991b1b; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.woocommerce-info    { background: #dbeafe; border-left: 4px solid #3b82f6;        color: #1e40af; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 12px; }

/* Cart / Checkout */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.woocommerce table.shop_table th { background: var(--light); font-weight: 700; }
.woocommerce-checkout .form-row { margin-bottom: 18px; }
.woocommerce-checkout label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.woocommerce-checkout input[type=text],
.woocommerce-checkout input[type=email],
.woocommerce-checkout input[type=tel],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%; padding: 11px 15px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .93rem; outline: none;
  transition: border-color var(--tr);
}
.woocommerce-checkout input:focus, .woocommerce-checkout select:focus { border-color: var(--primary); }
#place_order {
  width: 100%; padding: 15px; background: var(--accent);
  color: var(--white); border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  font-family: var(--font); transition: all var(--tr);
}
#place_order:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ============================================================
   PAGINATION
============================================================ */
.woocommerce-pagination { margin-top: 48px; }
.woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); color: var(--dark);
  font-weight: 600; font-size: .9rem; transition: all var(--tr);
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 500px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-tour__layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column;
    padding: 24px; gap: 4px; z-index: 998;
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 14px 16px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }
  .phone-btn span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tours-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .section { padding: 56px 0; }
}
