/*
Theme Name: Travel Admin Theme
Theme URI: https://indianadmin.com
Author: Indian Admin
Author URI: https://indianadmin.com
Description: Simple, fast, minimal theme built specifically for the Travel Admin plugin. All trip/booking content renders through the plugin's own shortcodes ([ta_trips], [ta_trip_detail], [ta_destination_trips], etc.) -- this theme only supplies the site chrome (header, footer, typography, color palette) around them, matching the TravelAdmin mobile app's brand.
Version: 1.4.2
Requires PHP: 7.4
Text Domain: travel-admin-theme
*/

/* ============================================================
   Brand palette -- matches the TravelAdmin mobile app exactly
   (Resources/Styles/Colors.xaml): DodgerBlue primary, orange
   accent, bright yellow highlight.
   ============================================================ */
:root {
	--ta-primary: #1E90FF;
	--ta-primary-dark: #0D47A1;
	--ta-primary-light: #DCEBFC;
	--ta-accent: #F57C00;
	--ta-highlight: #FFEB3B;
	--ta-text: #1A1A1A;
	--ta-text-muted: #6B7280;
	--ta-bg: #F5F7FA;
	--ta-card-bg: #FFFFFF;
	--ta-border: #E5E7EB;
	--ta-header-height: 64px;
	--ta-max-width: 1200px;
}

/* ============================================================
   Reset -- deliberately tiny, not a full normalize.css: this
   theme only needs to undo a handful of browser defaults.
   ============================================================ */
* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ta-text);
	background: var(--ta-bg);
	line-height: 1.6;
	font-size: 16px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ta-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	margin: 0 0 0.5em;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.ta-container {
	max-width: var(--ta-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ============================================================
   Header
   ============================================================ */
.ta-site-header {
	background: var(--ta-primary);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ta-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--ta-header-height);
	gap: 16px;
}

.ta-site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ta-site-branding img {
	max-height: 40px;
	width: auto;
}

.ta-site-title {
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ta-site-title a {
	color: #FFFFFF;
	text-decoration: none;
}

.ta-primary-nav {
	display: flex;
}

.ta-primary-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.ta-primary-nav a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-weight: 600;
	font-size: 14.5px;
	padding: 10px 14px;
	border-radius: 8px;
	display: inline-block;
	transition: background-color 0.15s ease;
}

.ta-primary-nav a:hover,
.ta-primary-nav .current-menu-item > a {
	background: rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
}

.ta-menu-toggle {
	display: none;
	background: transparent;
	border: none;
	color: #FFFFFF;
	font-size: 26px;
	line-height: 1;
	padding: 6px 10px;
	cursor: pointer;
}

/* ============================================================
   Main content area
   ============================================================ */
.ta-site-main {
	min-height: 50vh;
	padding: 32px 0 56px;
}

/* Front page only: no top gap before the slider, so it sits flush against
   the header -- the slider's own bottom margin supplies the usual spacing
   before whatever content follows it. */
body.home .ta-site-main {
	padding-top: 0;
}

/* ============================================================
   Homepage Slider -- Appearance -> Homepage Slider (functions.php:
   ta_theme_render_homepage_slider()). Front page only. Full-bleed:
   pulled out to the viewport edges regardless of .ta-container's
   max-width/padding, via the negative-margin breakout technique
   (avoids 100vw, which overflows when a scrollbar is present).
   ============================================================ */
.ta-home-slider {
	position: relative;
	height: 440px;
	overflow: hidden;
	margin: 0 calc(50% - 50vw) 32px;
	background: var(--ta-border);
}

.ta-home-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.9s ease;
}

.ta-home-slide.is-active {
	opacity: 1;
}

.ta-home-slide-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	background: linear-gradient(180deg, rgba(13, 71, 161, 0.15) 0%, rgba(13, 71, 161, 0.78) 100%);
}

.ta-home-slide-content {
	max-width: 640px;
	color: #fff;
}

.ta-home-slide-content h2 {
	color: #fff;
	font-size: 34px;
	margin: 0 0 12px;
}

.ta-home-slide-content p {
	color: rgba(255, 255, 255, 0.95);
	font-size: 17px;
	margin: 0 0 20px;
}

.ta-home-slide-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ta-accent);
	color: #fff;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 8px;
	text-decoration: none;
}

.ta-home-slide-button:hover {
	filter: brightness(0.95);
	text-decoration: none;
}

.ta-home-slider-dots {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.ta-home-slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}

.ta-home-slider-dots button.is-active {
	background: #fff;
}

.ta-page-title {
	font-size: 28px;
	margin-bottom: 20px;
}

/* ============================================================
   Footer
   ============================================================ */
.ta-site-footer {
	background: #10233F;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 40px;
}

.ta-footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 32px;
	padding: 44px 0 28px;
}

.ta-footer-columns h3 {
	color: #FFFFFF;
	font-size: 16px;
	margin-bottom: 14px;
}

.ta-footer-columns ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ta-footer-columns li {
	margin-bottom: 8px;
}

.ta-footer-columns a {
	color: rgba(255, 255, 255, 0.75);
}

.ta-footer-columns a:hover {
	color: var(--ta-highlight);
}

.ta-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 16px 0;
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	align-items: center;
	color: rgba(255, 255, 255, 0.6);
}

.ta-footer-bottom .ta-heart {
	color: var(--ta-accent);
}

/* ============================================================
   Small, generic building blocks a theme is expected to style
   (WP core forms/buttons/tables) -- kept intentionally light so
   the plugin's own frontend.css does the heavy lifting for trip
   cards/grids.
   ============================================================ */
.button,
input[type="submit"],
button {
	background: var(--ta-accent);
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	display: inline-block;
}

.button:hover,
input[type="submit"]:hover,
button:hover {
	filter: brightness(0.95);
	text-decoration: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ta-border);
	border-radius: 8px;
	font-size: 15px;
	background: #FFFFFF;
	color: var(--ta-text);
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
}

table th,
table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--ta-border);
	text-align: left;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
	.ta-primary-nav {
		position: absolute;
		top: var(--ta-header-height);
		left: 0;
		right: 0;
		background: var(--ta-primary-dark);
		flex-direction: column;
		display: none;
	}

	.ta-primary-nav.is-open {
		display: flex;
	}

	.ta-primary-nav ul {
		flex-direction: column;
		width: 100%;
		gap: 0;
		padding: 8px 0;
	}

	.ta-primary-nav a {
		border-radius: 0;
		padding: 12px 20px;
	}

	.ta-menu-toggle {
		display: inline-block;
	}

	.ta-footer-columns {
		padding: 32px 0 20px;
	}

	.ta-footer-bottom {
		justify-content: center;
		text-align: center;
	}

	.ta-home-slider {
		height: 320px;
	}

	.ta-home-slide-content h2 {
		font-size: 24px;
	}

	.ta-home-slide-content p {
		font-size: 15px;
	}
}
