/* =============================================================================
   TRAVEL PORTAL PLUGIN — FRONTEND CSS
   Primary: #081C2D  |  Gold: #C9A45C  |  Background: #F8F5F0
   ============================================================================= */

/* =============================================================================
   1. CSS VARIABLES & RESET
   ============================================================================= */

:root {
  --tp-primary:     #081C2D;
  --tp-gold:        #C9A45C;
  --tp-gold-dark:   #a8833d;
  --tp-bg:          #F8F5F0;
  --tp-white:       #ffffff;
  --tp-gray-100:    #f4f4f4;
  --tp-gray-200:    #e8e8e8;
  --tp-gray-400:    #bdbdbd;
  --tp-gray-600:    #757575;
  --tp-gray-800:    #333333;
  --tp-shadow-sm:   0 2px 8px rgba(8, 28, 45, 0.08);
  --tp-shadow-md:   0 4px 20px rgba(8, 28, 45, 0.14);
  --tp-shadow-lg:   0 8px 32px rgba(8, 28, 45, 0.18);
  --tp-radius:      8px;
  --tp-radius-lg:   12px;
  --tp-transition:  all 0.28s ease;
  --tp-font:        'Segoe UI', Arial, sans-serif;
}

.tp-page-wrapper *,
.tp-page-wrapper *::before,
.tp-page-wrapper *::after {
  box-sizing: border-box;
}

.tp-page-wrapper {
  font-family: var(--tp-font);
  color: var(--tp-gray-800);
  background-color: var(--tp-bg);
  min-height: 60vh;
}

/* =============================================================================
   2. BREADCRUMB
   ============================================================================= */

.tp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 0 8px;
  font-size: 12px;
  color: var(--tp-gray-600);
  list-style: none;
  margin: 0 0 16px 0;
}

.tp-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Gold accent στο separator */
.tp-breadcrumb li + li::before {
  content: "›";
  color: var(--tp-gold);
  font-size: 14px;
  line-height: 1;
}

.tp-breadcrumb a {
  color: var(--tp-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--tp-transition);
}

.tp-breadcrumb a:hover {
  color: var(--tp-gold);
  text-decoration: underline;
}

.tp-breadcrumb .tp-breadcrumb-current {
  color: var(--tp-gold);
  font-weight: 600;
}

/* =============================================================================
   3. PAGE TITLES & HEADINGS
   ============================================================================= */

.tp-page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--tp-primary);
  margin: 0 0 6px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.tp-page-subtitle {
  font-size: 16px;
  color: var(--tp-gray-600);
  margin: 0 0 30px 0;
  font-weight: 400;
}

.tp-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tp-primary);
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tp-gold);
  display: inline-block;
}

.tp-results-count {
  font-size: 14px;
  color: var(--tp-gray-600);
  margin-bottom: 20px;
  font-style: italic;
}

.tp-results-count strong {
  color: var(--tp-primary);
  font-style: normal;
}

/* =============================================================================
   4. LAYOUT — MAIN CONTAINER, SIDEBAR + CONTENT
   ============================================================================= */

/* flex-wrap: nowrap — sidebar (280px) πάντα αριστερά, content δεξιά */
.tp-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  align-items: flex-start;
  padding: 30px 0 50px;
}

/* Sidebar on the left */
.tp-sidebar {
  flex: 0 0 280px;
  width: 280px;
  position: sticky;
  top: 30px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tp-gray-200) transparent;
}

.tp-sidebar::-webkit-scrollbar {
  width: 4px;
}

.tp-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.tp-sidebar::-webkit-scrollbar-thumb {
  background: var(--tp-gray-200);
  border-radius: 4px;
}

/* Main content area */
.tp-content {
  flex: 1 1 0;
  min-width: 0;
}

/* =============================================================================
   5. SIDEBAR FILTERS
   ============================================================================= */

.tp-filter-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
  border-top: 4px solid var(--tp-gold);
  padding: 24px 22px;
  margin-bottom: 22px;
  transition: var(--tp-transition);
}

.tp-filter-card:hover {
  box-shadow: var(--tp-shadow-md);
}

.tp-filter-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tp-primary);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tp-gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-filter-card-title svg,
.tp-filter-card-title .dashicons {
  color: var(--tp-gold);
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Filter form elements */
.tp-filter-group {
  margin-bottom: 16px;
}

.tp-filter-group:last-child {
  margin-bottom: 0;
}

.tp-filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tp-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.tp-filter-input,
.tp-filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--tp-gray-200);
  border-radius: var(--tp-radius);
  font-size: 14px;
  color: var(--tp-gray-800);
  background: var(--tp-white);
  transition: var(--tp-transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.tp-filter-input:focus,
.tp-filter-select:focus {
  border-color: var(--tp-gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.15);
}

.tp-filter-input:focus-visible,
.tp-filter-select:focus-visible {
  outline: none;
}

.tp-filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A45C' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 7px;
  padding-right: 36px;
  cursor: pointer;
}

/* Checkbox / Radio filters */
.tp-filter-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-filter-check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-filter-check-list input[type="checkbox"],
.tp-filter-check-list input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tp-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.tp-filter-check-list label {
  font-size: 14px;
  color: var(--tp-gray-800);
  cursor: pointer;
  transition: var(--tp-transition);
  flex: 1;
}

.tp-filter-check-list label:hover {
  color: var(--tp-gold);
}

.tp-filter-check-count {
  font-size: 12px;
  color: var(--tp-gray-400);
  margin-left: auto;
}

/* Filter submit button */
.tp-filter-btn {
  display: block;
  width: 100%;
  padding: 11px 18px;
  background: var(--tp-gold);
  color: var(--tp-white);
  border: none;
  border-radius: var(--tp-radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--tp-transition);
  text-align: center;
  letter-spacing: 0.4px;
  margin-top: 18px;
}

.tp-filter-btn:hover {
  background: var(--tp-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 164, 92, 0.35);
}

.tp-filter-btn:active {
  transform: translateY(0);
}

.tp-filter-btn:focus-visible {
  outline: 3px solid var(--tp-gold-dark);
  outline-offset: 2px;
}

/* Reset filters link */
.tp-filter-reset {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--tp-gray-600);
  text-decoration: none;
  transition: var(--tp-transition);
}

.tp-filter-reset:hover {
  color: var(--tp-gold);
}

/* =============================================================================
   6. PACKAGES GRID
   ============================================================================= */

/* align-items: stretch για ίσο ύψος καρτών */
.tp-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* =============================================================================
   7. PACKAGE CARD
   ============================================================================= */

/* height: 100% + flex column για ίσο ύψος και σωστό footer push */
.tp-package-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--tp-transition);
  position: relative;
  border: 1px solid transparent;
}

.tp-package-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tp-shadow-lg);
  border-color: rgba(201, 164, 92, 0.25);
}

/* Card image */
.tp-package-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--tp-gray-200);
}

.tp-package-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tp-package-card:hover .tp-package-card-image img {
  transform: scale(1.07);
}

/* Card image placeholder */
.tp-package-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tp-primary) 0%, #1a3a5c 100%);
  color: var(--tp-gold);
  font-size: 42px;
}

/* Card badge */
.tp-package-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tp-gold);
  color: var(--tp-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}

.tp-package-badge.badge-featured {
  background: var(--tp-primary);
}

.tp-package-badge.badge-sale {
  background: #c0392b;
}

/* Card body */
.tp-package-card-body {
  padding: 20px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-package-card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.tp-package-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tp-primary);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-package-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--tp-transition);
}

.tp-package-card-title a:hover {
  color: var(--tp-gold);
}

.tp-package-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--tp-gray-600);
  margin-top: 2px;
}

.tp-package-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-package-card-meta .dashicons,
.tp-package-card-meta svg {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: var(--tp-gold);
}

.tp-package-card-excerpt {
  font-size: 13px;
  color: var(--tp-gray-600);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  flex: 1;
}

/* Card footer */
.tp-package-card-footer {
  padding: 14px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tp-gray-200);
  gap: 12px;
}

.tp-package-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-package-price-label {
  font-size: 11px;
  color: var(--tp-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Gold χρώμα για την τιμή */
.tp-package-price-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--tp-gold);
  line-height: 1;
}

.tp-package-price-amount .currency {
  font-size: 14px;
  font-weight: 600;
  vertical-align: top;
  margin-top: 3px;
  display: inline-block;
}

.tp-package-price-old {
  font-size: 13px;
  color: var(--tp-gray-400);
  text-decoration: line-through;
}

/* =============================================================================
   8. BUTTONS
   ============================================================================= */

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--tp-radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--tp-transition);
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}

.tp-btn-gold {
  background: var(--tp-gold);
  color: var(--tp-white);
  border-color: var(--tp-gold);
}

.tp-btn-gold:hover {
  background: var(--tp-gold-dark);
  border-color: var(--tp-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201, 164, 92, 0.4);
  color: var(--tp-white);
  text-decoration: none;
}

.tp-btn-gold:active {
  transform: translateY(0);
  box-shadow: none;
}

.tp-btn-gold:focus-visible {
  outline: 3px solid var(--tp-gold-dark);
  outline-offset: 2px;
}

.tp-btn-outline {
  background: transparent;
  color: var(--tp-primary);
  border-color: var(--tp-primary);
}

.tp-btn-outline:hover {
  background: var(--tp-primary);
  color: var(--tp-white);
  text-decoration: none;
}

.tp-btn-outline:focus-visible {
  outline: 3px solid var(--tp-primary);
  outline-offset: 2px;
}

.tp-btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.tp-btn-lg {
  padding: 14px 30px;
  font-size: 15px;
}

/* =============================================================================
   9. AGENCY CARDS
   ============================================================================= */

.tp-agencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tp-agency-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--tp-transition);
  border: 1px solid transparent;
}

.tp-agency-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--tp-shadow-lg);
  border-color: rgba(201, 164, 92, 0.25);
}

/* Agency card cover image */
.tp-agency-card-cover {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, var(--tp-primary) 0%, #1a3a5c 100%);
}

/* Wrapper για img ώστε το zoom να κλιπάρει σωστά */
.tp-agency-card-cover-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tp-agency-card-cover-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 0.45s ease;
}

.tp-agency-card:hover .tp-agency-card-cover-img-wrap img {
  transform: scale(1.07);
}

/* Agency logo — εξέχει από το cover προς τα κάτω */
.tp-agency-logo {
  position: absolute;
  bottom: -30px;
  left: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--tp-white);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-gold);
  font-size: 28px;
  font-weight: 800;
  z-index: 2;
}

.tp-agency-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Agency card body */
.tp-agency-card-body {
  padding: 40px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-agency-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-primary);
  margin: 0;
}

.tp-agency-card-name a {
  color: inherit;
  text-decoration: none;
  transition: var(--tp-transition);
}

.tp-agency-card-name a:hover {
  color: var(--tp-gold);
}

.tp-agency-card-location {
  font-size: 13px;
  color: var(--tp-gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-agency-card-location .dashicons,
.tp-agency-card-location svg {
  color: var(--tp-gold);
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.tp-agency-card-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--tp-gray-600);
}

.tp-agency-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tp-agency-card-stat strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--tp-primary);
  line-height: 1;
}

.tp-agency-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--tp-gray-600);
  margin-top: 4px;
}

.tp-agency-rating .stars {
  color: var(--tp-gold);
  font-size: 14px;
  letter-spacing: -1px;
}

/* Agency card footer */
.tp-agency-card-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid var(--tp-gray-200);
}

/* =============================================================================
   10. HERO HEADER — PACKAGES LIST PAGE
   ============================================================================= */

/* Hero για τη σελίδα λίστας πακέτων: dark bg #081C2D, white text, padding 40px */
.tp-packages-hero {
  background: var(--tp-primary);
  color: var(--tp-white);
  padding: 40px;
  border-radius: var(--tp-radius-lg);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

/* Subtle gold overlay — z-index: 0 για σωστό stacking context */
.tp-packages-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.tp-packages-hero-content {
  position: relative;
  z-index: 1;
}

.tp-packages-hero .tp-breadcrumb {
  margin-bottom: 20px;
  padding-top: 0;
}

.tp-packages-hero .tp-breadcrumb,
.tp-packages-hero .tp-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.tp-packages-hero .tp-breadcrumb a:hover {
  color: var(--tp-gold);
  text-decoration: underline;
}

.tp-packages-hero .tp-breadcrumb li + li::before {
  color: var(--tp-gold);
}

.tp-packages-hero .tp-breadcrumb .tp-breadcrumb-current {
  color: var(--tp-gold);
}

.tp-packages-hero .tp-page-title {
  color: var(--tp-white);
  font-size: 34px;
  margin-bottom: 8px;
}

.tp-packages-hero .tp-page-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

/* =============================================================================
   11. SINGLE PACKAGE / AGENCY DETAIL PAGE
   ============================================================================= */

/* Hero section */
.tp-single-hero {
  position: relative;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--tp-primary) 0%, #1a3a5c 100%);
}

.tp-single-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tp-single-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tp-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 28, 45, 0.85) 0%, rgba(8, 28, 45, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.tp-single-hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 36px;
  color: var(--tp-white);
  width: 100%;
}

.tp-single-hero-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tp-gold);
  margin-bottom: 8px;
}

.tp-single-hero-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--tp-white);
  margin: 0 0 12px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.tp-single-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.tp-single-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Info box */
.tp-info-box {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
  padding: 24px 26px;
  margin-bottom: 24px;
}

.tp-info-box-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-primary);
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tp-gold);
}

.tp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.tp-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tp-info-item-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tp-info-item-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-primary);
}

/* Price box */
.tp-price-box {
  background: var(--tp-primary);
  border-radius: var(--tp-radius-lg);
  padding: 24px 26px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--tp-white);
}

.tp-price-box-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.tp-price-box-amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--tp-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.tp-price-box-per {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.tp-price-box .tp-btn-gold {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* =============================================================================
   12. PAGINATION
   ============================================================================= */

.tp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 30px 0 10px;
  margin-top: 20px;
}

.tp-pagination a,
.tp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--tp-radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--tp-transition);
  border: 1.5px solid var(--tp-gray-200);
  background: var(--tp-white);
  color: var(--tp-primary);
  cursor: pointer;
}

.tp-pagination a:hover {
  border-color: var(--tp-gold);
  color: var(--tp-gold);
  box-shadow: 0 2px 8px rgba(201, 164, 92, 0.2);
  text-decoration: none;
}

.tp-pagination a:focus-visible {
  outline: 2px solid var(--tp-gold);
  outline-offset: 1px;
}

.tp-pagination .tp-page-current,
.tp-pagination span.current {
  background: var(--tp-gold);
  border-color: var(--tp-gold);
  color: var(--tp-white);
  cursor: default;
}

.tp-pagination .tp-page-dots {
  border: none;
  background: transparent;
  color: var(--tp-gray-400);
  cursor: default;
}

.tp-pagination .tp-page-prev,
.tp-pagination .tp-page-next {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* =============================================================================
   13. SEARCH BAR
   ============================================================================= */

.tp-search-bar {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.tp-search-bar-group {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-search-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tp-search-bar-input,
.tp-search-bar-select {
  padding: 10px 14px;
  border: 1.5px solid var(--tp-gray-200);
  border-radius: var(--tp-radius);
  font-size: 14px;
  color: var(--tp-gray-800);
  background: var(--tp-bg);
  transition: var(--tp-transition);
  outline: none;
  width: 100%;
}

.tp-search-bar-input:focus,
.tp-search-bar-select:focus {
  border-color: var(--tp-gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.12);
  background: var(--tp-white);
}

/* Custom gold arrow — visual consistency με .tp-filter-select */
.tp-search-bar-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A45C' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 7px;
  padding-right: 36px;
  cursor: pointer;
}

.tp-search-bar .tp-btn-gold {
  padding: 11px 26px;
  font-size: 14px;
  flex-shrink: 0;
  height: 42px;
  align-self: flex-end;
}

/* =============================================================================
   14. TABS
   ============================================================================= */

.tp-tabs {
  display: flex;
  border-bottom: 2px solid var(--tp-gray-200);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tp-tab {
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-gray-600);
  cursor: pointer;
  transition: var(--tp-transition);
  text-decoration: none;
  background: transparent;
}

.tp-tab:hover {
  color: var(--tp-primary);
  text-decoration: none;
}

.tp-tab.active,
.tp-tab[aria-selected="true"] {
  color: var(--tp-gold);
  border-bottom-color: var(--tp-gold);
}

.tp-tab:focus-visible {
  outline: 2px solid var(--tp-gold);
  outline-offset: -2px;
  border-radius: 3px 3px 0 0;
}

.tp-tab-content {
  display: none;
}

.tp-tab-content.active {
  display: block;
}

/* =============================================================================
   15. NOTICES & ALERTS
   ============================================================================= */

.tp-notice {
  padding: 14px 18px;
  border-radius: var(--tp-radius);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.tp-notice-info {
  background: rgba(8, 28, 45, 0.06);
  border-left: 4px solid var(--tp-primary);
  color: var(--tp-primary);
}

.tp-notice-success {
  background: rgba(39, 174, 96, 0.08);
  border-left: 4px solid #27ae60;
  color: #1e7e34;
}

.tp-notice-warning {
  background: rgba(201, 164, 92, 0.12);
  border-left: 4px solid var(--tp-gold);
  color: #5c420e;
}

.tp-notice-error {
  background: rgba(192, 57, 43, 0.08);
  border-left: 4px solid #c0392b;
  color: #a02020;
}

/* Empty state */
.tp-empty-state {
  text-align: center;
  padding: 60px 30px;
  color: var(--tp-gray-600);
}

.tp-empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.35;
}

.tp-empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tp-primary);
  margin-bottom: 8px;
}

.tp-empty-state-text {
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto 22px;
}

/* =============================================================================
   16. LOADING SKELETON
   ============================================================================= */

@keyframes tp-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Shared base styles — aspect-ratio / height ορίζεται ανά τύπο παρακάτω */
.tp-skeleton,
.tp-skeleton-image,
.tp-skeleton-line {
  background: var(--tp-gray-200);
  border-radius: 4px;
  animation: tp-skeleton-pulse 1.5s ease-in-out infinite;
}

.tp-skeleton-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  box-shadow: var(--tp-shadow-sm);
}

.tp-skeleton-image {
  aspect-ratio: 16 / 10;
}

.tp-skeleton-body {
  padding: 20px;
}

.tp-skeleton-line {
  height: 14px;
  margin-bottom: 10px;
}

.tp-skeleton-line.short  { width: 50%; }
.tp-skeleton-line.medium { width: 75%; }
.tp-skeleton-line.full   { width: 100%; }

/* =============================================================================
   17. UTILITY CLASSES
   ============================================================================= */

.tp-text-gold    { color: var(--tp-gold); }
.tp-text-primary { color: var(--tp-primary); }
.tp-text-muted   { color: var(--tp-gray-600); }
.tp-text-center  { text-align: center; }
.tp-text-right   { text-align: right; }

.tp-mt-0 { margin-top: 0; }
.tp-mt-1 { margin-top: 8px; }
.tp-mt-2 { margin-top: 16px; }
.tp-mt-3 { margin-top: 24px; }
.tp-mt-4 { margin-top: 32px; }

.tp-mb-0 { margin-bottom: 0; }
.tp-mb-1 { margin-bottom: 8px; }
.tp-mb-2 { margin-bottom: 16px; }
.tp-mb-3 { margin-bottom: 24px; }
.tp-mb-4 { margin-bottom: 32px; }

.tp-d-flex         { display: flex; }
.tp-align-center   { align-items: center; }
.tp-justify-between { justify-content: space-between; }
.tp-gap-1          { gap: 8px; }
.tp-gap-2          { gap: 16px; }

.tp-w-100  { width: 100%; }
.tp-hidden { display: none !important; }

/* =============================================================================
   18. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================================= */

@media (max-width: 1024px) {

  .tp-layout {
    gap: 22px;
  }

  .tp-sidebar {
    flex: 0 0 240px;
    width: 240px;
    max-height: calc(100vh - 60px);
  }

  /* Grids: 3 → 2 columns */
  .tp-packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .tp-agencies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .tp-page-title {
    font-size: 26px;
  }

  .tp-packages-hero .tp-page-title {
    font-size: 28px;
  }

  .tp-single-hero-title {
    font-size: 28px;
  }

  .tp-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-packages-hero {
    padding: 30px;
  }
}

/* =============================================================================
   19. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================================= */

@media (max-width: 768px) {

  /* Layout: sidebar stack — flex-wrap αφαιρέθηκε (περιττό με flex-direction:column) */
  .tp-layout {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 40px;
  }

  .tp-sidebar {
    flex: none;
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  /* Grids: 1 column */
  .tp-packages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tp-agencies-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Titles */
  .tp-page-title {
    font-size: 22px;
  }

  .tp-page-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .tp-section-title {
    font-size: 18px;
  }

  /* Packages hero */
  .tp-packages-hero {
    padding: 24px 20px;
    border-radius: var(--tp-radius);
  }

  .tp-packages-hero .tp-page-title {
    font-size: 22px;
  }

  /* Hero */
  .tp-single-hero {
    min-height: 260px;
  }

  .tp-single-hero-content {
    padding: 20px;
  }

  .tp-single-hero-title {
    font-size: 22px;
  }

  .tp-single-hero-meta {
    gap: 10px;
    font-size: 12px;
  }

  /* Search bar: stack */
  .tp-search-bar {
    flex-direction: column;
    padding: 16px;
    gap: 10px;
  }

  .tp-search-bar-group {
    min-width: 0;
    width: 100%;
  }

  .tp-search-bar .tp-btn-gold {
    width: 100%;
    justify-content: center;
  }

  /* Filter card */
  .tp-filter-card {
    padding: 18px 16px;
  }

  /* Package card */
  .tp-package-card-body {
    padding: 16px 16px 12px;
  }

  .tp-package-card-footer {
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .tp-package-card-footer .tp-btn-gold {
    width: 100%;
    justify-content: center;
  }

  /* Agency card */
  .tp-agency-card-cover {
    height: 100px;
  }

  /* Pagination */
  .tp-pagination a,
  .tp-pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* Info grid: 1 col */
  .tp-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Price box */
  .tp-price-box-amount {
    font-size: 34px;
  }

  /* Tabs: horizontally scrollable */
  .tp-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tp-tabs::-webkit-scrollbar {
    display: none;
  }

  .tp-tab {
    white-space: nowrap;
    padding: 10px 16px;
  }

  /* Breadcrumb */
  .tp-breadcrumb {
    font-size: 11px;
  }
}

/* =============================================================================
   20. PRINT STYLES
   ============================================================================= */

@media print {
  .tp-sidebar,
  .tp-pagination,
  .tp-search-bar,
  .tp-filter-card {
    display: none !important;
  }

  .tp-layout {
    display: block;
  }

  .tp-content {
    width: 100%;
  }

  .tp-package-card,
  .tp-agency-card {
    box-shadow: none;
    border: 1px solid var(--tp-gray-200);
    break-inside: avoid;
  }

  .tp-packages-grid,
  .tp-agencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tp-packages-hero {
    background: var(--tp-primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
/* =============================================================================
   APPEND — Packages List Page (/taxidiwtika-paketa/) class name aliases
   Το templates/frontend/packages-list.php χρησιμοποιεί διαφορετικά class names
   από τα ήδη υπάρχοντα παραπάνω. Αυτό το block τα "γεφυρώνει" χωρίς να αλλάξει
   το PHP template ή τα υπάρχοντα selectors.
   ============================================================================= */

/* ── Layout: sidebar + content ──────────────────────────────────────────── */
.tp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}




.tp-packages-layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  align-items: flex-start;
  padding: 30px 0 50px;
}

.tp-packages-sidebar {
  flex: 0 0 280px;
  width: 280px;
  position: sticky;
  top: 30px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tp-gray-200) transparent;
}

.tp-packages-sidebar::-webkit-scrollbar {
  width: 4px;
}

.tp-packages-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.tp-packages-sidebar::-webkit-scrollbar-thumb {
  background: var(--tp-gray-200);
  border-radius: 4px;
}

.tp-packages-content {
  flex: 1 1 0;
  min-width: 0;
}

/* ── Sidebar filter card ─────────────────────────────────────────────────── */
.tp-sidebar-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius-lg);
  box-shadow: var(--tp-shadow-sm);
  border-top: 4px solid var(--tp-gold);
  padding: 24px 22px;
  margin-bottom: 22px;
  transition: var(--tp-transition);
}

.tp-sidebar-card:hover {
  box-shadow: var(--tp-shadow-md);
}

.tp-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tp-primary);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tp-gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Filter form extras (price range row, actions, indicator) ─────────────── */
.tp-filter-sublabel {
  display: block;
  font-size: 11px;
  color: var(--tp-gray-400);
  margin-bottom: 4px;
}

.tp-filter-price-range {
  display: flex;
  gap: 10px;
}

.tp-filter-price-row {
  flex: 1;
}

.tp-filter-price-input {
  width: 100%;
}

.tp-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.tp-btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

.tp-filter-active-indicator {
  color: var(--tp-gold);
  font-style: normal;
  font-weight: 600;
}

/* ── Toolbar: results count + sort ─────────────────────────────────────────── */
.tp-packages-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tp-packages-toolbar .tp-results-count {
  margin-bottom: 0;
}

.tp-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-sort-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tp-gray-600);
  white-space: nowrap;
}

.tp-sort-select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--tp-gray-200);
  border-radius: var(--tp-radius);
  font-size: 13px;
  color: var(--tp-gray-800);
  background: var(--tp-white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A45C' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  background-size: 12px 7px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: var(--tp-transition);
  outline: none;
}

.tp-sort-select:focus {
  border-color: var(--tp-gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.15);
}

/* ── Package card aliases (matches .tp-package-card-* styling) ────────────── */
.tp-packages-grid li {
  list-style: none;
}

.tp-packages-grid .tp-package-card {
  height: 100%;
}

.tp-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--tp-gray-200);
}

.tp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.tp-package-card:hover .tp-card-image img {
  transform: scale(1.07);
}

.tp-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tp-primary) 0%, #1a3a5c 100%);
  color: var(--tp-gold);
  font-size: 42px;
}

.tp-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--tp-gold);
  color: var(--tp-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}

.tp-card-body {
  padding: 20px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tp-primary);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: var(--tp-transition);
}

.tp-card-title-link:hover {
  color: var(--tp-gold);
}

/* Agency line (Brand) */
.tp-card-agency {
  font-size: 12px;
  font-weight: 600;
  color: var(--tp-gray-600);
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.tp-card-agency-link {
  color: inherit;
  text-decoration: none;
  transition: var(--tp-transition);
}

.tp-card-agency-link:hover {
  color: var(--tp-gold);
}

.tp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--tp-gray-600);
  margin-top: 2px;
}

.tp-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-card-meta-item .dashicons,
.tp-card-meta-item svg {
  font-size: 15px;
  width: 15px;
  height: 15px;
  color: var(--tp-gold);
}

/* Card footer + price */
.tp-card-footer {
  padding: 14px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--tp-gray-200);
  gap: 12px;
}

.tp-card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--tp-gold);
  line-height: 1;
}

/* ── Responsive: stack sidebar on smaller screens ──────────────────────────── */
@media (max-width: 991px) {
  .tp-packages-layout {
    display: block;
  }

  .tp-packages-sidebar {
    width: 100%;
    flex: none;
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }

  .tp-packages-content {
    width: 100%;
  }
}

@media (max-width: 599px) {
  .tp-packages-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tp-filter-price-range {
    flex-direction: column;
    gap: 8px;
  }
}